To see an alphabetical site map click here

  • Alignment Specification
    ChartDirector Ver 4.1 (C++ Edition) Alignment Specification In many ChartDirector objects, you may specify the alignment of the object's content relative to its boundary. For example, for a TextBox...

  • Start Angle and Direction
    ChartDirector Ver 4.1 (C++ Edition) Start Angle and Direction    This example demonstrates different sector layout angles and directions. By default, ChartDirector positions sectors...

  • AngularAxis.addLabel
    ChartDirector Ver 4.1 (C++ Edition) AngularAxis .addLabel Usage void addLabel(double pos, const char *label); Description Adds an extra label on the axis. Arguments Argument Default Description pos...

  • AngularAxis.addZone
    ChartDirector Ver 4.1 (C++ Edition) AngularAxis .addZone Usage void addZone(double startValue, double endValue, int startRadius, int endRadius, int fillColor, int edgeColor = -1); Description Adds an...

  • AngularAxis.addZone2
    ChartDirector Ver 4.1 (C++ Edition) AngularAxis .addZone2 Usage void addZone(double startValue, double endValue, int fillColor, int edgeColor = -1); Description Adds an angular zone to the polar...

  • AngularAxis.getAxisImageMap
    ChartDirector Ver 4.1 (C++ Edition) AngularAxis .getAxisImageMap Usage const char *getAxisImageMap(int noOfSegments, int mapWidth, const char *url, const char *queryFormat = 0, const char *extraAttr...

  • AngularAxis.getHTMLImageMap
    ChartDirector Ver 4.1 (C++ Edition) AngularAxis .getHTMLImageMap Usage const char *getHTMLImageMap(const char *url, const char *queryFormat = 0, const char *extraAttr = 0, int offsetX = 0, int...

  • AngularAxis
    ChartDirector Ver 4.1 (C++ Edition) AngularAxis The AngularAxis class represents angular axes in polar charts. The angular axis is the axis representing the angular component of a polar coordinate....

  • AngularAxis.setLabelGap
    ChartDirector Ver 4.1 (C++ Edition) AngularAxis .setLabelGap Usage void setLabelGap(int d); Description Sets the distance between the axis labels and the axis. Arguments Argument Default Description...

  • AngularAxis.setLabels
    ChartDirector Ver 4.1 (C++ Edition) AngularAxis .setLabels Usage TextBox *setLabels(StringArray text); Description Sets the text labels to be used on the axis. This method is typically used in radar...

  • AngularAxis.setLabels2
    ChartDirector Ver 4.1 (C++ Edition) AngularAxis .setLabels2 Usage TextBox *setLabels(DoubleArray labels, const char *formatString = 0); Description Sets the numeric labels to be used on the axis....

  • AngularAxis.setLabelStyle
    ChartDirector Ver 4.1 (C++ Edition) AngularAxis .setLabelStyle Usage TextBox *setLabelStyle(const char *font = "bold", double fontSize = 10, int fontColor = TextColor, double fontAngle = 0);...

  • AngularAxis.setLinearScale
    ChartDirector Ver 4.1 (C++ Edition) AngularAxis .setLinearScale Usage void setLinearScale(double lowerLimit, double upperLimit, double majorTickInc = 0, double minorTickInc = 0); Description Sets the...

  • AngularAxis.setLinearScale2
    ChartDirector Ver 4.1 (C++ Edition) AngularAxis .setLinearScale2 Usage void setLinearScale(double lowerLimit, double upperLimit, StringArray labels); Description Sets the axis to use the given linear...

  • AngularMeter.addRing
    ChartDirector Ver 4.1 (C++ Edition) AngularMeter .addRing Usage void addRing(int startRadius, int endRadius, int fillColor, int edgeColor = -1); Description Adds a circular ring or a circle to the...

  • AngularMeter.addRingSector
    ChartDirector Ver 4.1 (C++ Edition) AngularMeter .addRingSector Usage void addRingSector(int startRadius, int endRadius, double a1, double a2, int fillColor, int edgeColor = -1); Description Adds a...

  • AngularMeter.addZone
    ChartDirector Ver 4.1 (C++ Edition) AngularMeter .addZone Usage void addZone(double startValue, double endValue, int startRadius, int endRadius, int fillColor, int edgeColor = -1); Description Adds a...

  • AngularMeter.addZone2
    ChartDirector Ver 4.1 (C++ Edition) AngularMeter .addZone2 Usage void addZone(double startValue, double endValue, int fillColor, int edgeColor = -1); Description Adds a colored zone to the meter....

  • AngularMeter.AngularMeter
    ChartDirector Ver 4.1 (C++ Edition) AngularMeter .AngularMeter Usage AngularMeter(int width, int height, int bgColor = BackgroundColor, int edgeColor = Transparent, int raisedEffect = 0); Description...

  • AngularMeter
    ChartDirector Ver 4.1 (C++ Edition) AngularMeter The AngularMeter class represents angular meters. The AngularMeter class is a subclass of BaseMeter . Method Inherited Description AngularMeter (Self)...

  • AngularMeter.setCap
    ChartDirector Ver 4.1 (C++ Edition) AngularMeter .setCap Usage void setCap(int radius, int fillColor, int edgeColor = LineColor); Description Set the radius and color of the pointer cap. The pointer...

  • AngularMeter.setMeter
    ChartDirector Ver 4.1 (C++ Edition) AngularMeter .setMeter Usage void setMeter(int cx, int cy, int radius, double startAngle, double endAngle); Description Sets the position and angle range of the...

  • Area Charts
    ChartDirector Ver 4.1 (C++ Edition) Area Charts Title Description Simple Area Chart Demonstrates the basic steps in creating area charts. Enhanced Area Chart Extends the Simple Area Chart example by...

  • AreaLayer
    ChartDirector Ver 4.1 (C++ Edition) AreaLayer The AreaLayer class represents area layers. AreaLayer is a subclass of Layer . AreaLayer objects are created by using XYChart.addAreaLayer and...

  • AreaLayer.setGapColor
    ChartDirector Ver 4.1 (C++ Edition) AreaLayer .setGapColor Usage void setGapColor(int fillColor); Description Sets the color used to fill the area under NoValue data points. By default, if there are...

  • AreaLayer.setMinLabelSize
    ChartDirector Ver 4.1 (C++ Edition) AreaLayer .setMinLabelSize Usage void setMinLabelSize(int s); Description Sets the minimum height (or width if x and y axes are swapped) of an area below which...

  • ArrayMath.abs
    ChartDirector Ver 4.1 (C++ Edition) ArrayMath .abs Usage ArrayMath& abs(); Description Replaces each element of the ArrayMath object by its absolute value. Arguments None Return Value The current...

  • ArrayMath.acc
    ChartDirector Ver 4.1 (C++ Edition) ArrayMath .acc Usage ArrayMath& acc(); Description Replaces each element of the ArrayMath object by the accumulated total of its previous element (including...

  • ArrayMath.add
    ChartDirector Ver 4.1 (C++ Edition) ArrayMath .add Usage ArrayMath& add(DoubleArray b); Description Adds an array to the ArrayMath object. The array will be added by adding the each array element...

  • ArrayMath.add2
    ChartDirector Ver 4.1 (C++ Edition) ArrayMath .add2 Usage ArrayMath& add(double b); Description Adds a number to every element of the ArrayMath object. Arguments Argument Default Description b...

  • ArrayMath.aggregate
    ChartDirector Ver 4.1 (C++ Edition) ArrayMath .aggregate Usage DoubleArray aggregate(DoubleArray srcArray, int aggregateMethod, double param = 50); Description Aggregates a data array by merging...

  • ArrayMath.ArrayMath
    ChartDirector Ver 4.1 (C++ Edition) ArrayMath .ArrayMath Usage ArrayMath(DoubleArray a); Description Creates an ArrayMath object and initialize it with the given array. Arguments Argument Default...

  • ArrayMath.avg
    ChartDirector Ver 4.1 (C++ Edition) ArrayMath .avg Usage double avg() const; Description Gets the avg value of the elements of the ArrayMath object. Arguments None Return Value The avg value of the...

  • ArrayMath.delta
    ChartDirector Ver 4.1 (C++ Edition) ArrayMath .delta Usage ArrayMath& delta(int offset = 1); Description Subtracts each element of the ArrayMath object by an earlier element in the same ArrayMath...

  • ArrayMath.div
    ChartDirector Ver 4.1 (C++ Edition) ArrayMath .div Usage ArrayMath& div(DoubleArray b); Description Divides the ArrayMath object by the given array. The ArrayMath object will be divided by...

  • ArrayMath.div2
    ChartDirector Ver 4.1 (C++ Edition) ArrayMath .div2 Usage ArrayMath& div(double b); Description Divides every element of the ArrayMath object by the given number. Arguments Argument Default...

  • ArrayMath.DoubleArray
    ChartDirector Ver 4.1 (C++ Edition) ArrayMath .DoubleArray Usage operator DoubleArray() const; Description Conversion operator to automatically convert ArrayMath object to DoubleArray . The...

  • ArrayMath.expAvg
    ChartDirector Ver 4.1 (C++ Edition) ArrayMath .expAvg Usage ArrayMath& expAvg(double smoothingFactor); Description Replaces each element of the ArrayMath object by its exponential average. The...

  • ArrayMath.financeDiv
    ChartDirector Ver 4.1 (C++ Edition) ArrayMath .financeDiv Usage ArrayMath &financeDiv(DoubleArray b, double zeroByZeroValue); Description Divides the ArrayMath object by the given array, with...

  • ArrayMath
    ChartDirector Ver 4.1 (C++ Edition) ArrayMath The ArrayMath class is a utility class used to perform array computations. Method Inherited Description ArrayMath (Self) Creates an ArrayMath object and...

  • ArrayMath.insert
    ChartDirector Ver 4.1 (C++ Edition) ArrayMath .insert Usage ArrayMath& insert(DoubleArray a, int insertPoint = -1); Description Inserts the elements of an array to the ArrayMath object. Arguments...

  • ArrayMath.insert2
    ChartDirector Ver 4.1 (C++ Edition) ArrayMath .insert2 Usage ArrayMath& insert(double c, int len, int insertPoint = -1); Description Inserts some constant elements to the ArrayMath object....

  • ArrayMath.lowess
    ChartDirector Ver 4.1 (C++ Edition) ArrayMath .lowess Usage ArrayMath& lowess(double smoothness = 0.25, int iteration = 0); Description Fits a curve through the data points in the ArrayMath...

  • ArrayMath.lowess2
    ChartDirector Ver 4.1 (C++ Edition) ArrayMath .lowess2 Usage ArrayMath& lowess(DoubleArray b, double smoothness = 0.25, int iteration = 0); Description Fits a curve through the data points in the...

  • ArrayMath.max
    ChartDirector Ver 4.1 (C++ Edition) ArrayMath .max Usage double maxValue() const; Description Gets the maximum value of the elements of the ArrayMath object. Arguments None Return Value The maximum...

  • ArrayMath.maxIndex
    ChartDirector Ver 4.1 (C++ Edition) ArrayMath .maxIndex Usage int maxIndex() const; Description Gets the index of the maximum value element of the ArrayMath object. Arguments None Return Value The...

  • ArrayMath.med
    ChartDirector Ver 4.1 (C++ Edition) ArrayMath .med Usage double med() const; Description Gets the med value of the elements of the ArrayMath object. Arguments None Return Value The med value of the...

  • ArrayMath.min
    ChartDirector Ver 4.1 (C++ Edition) ArrayMath .min Usage double minValue() const; Description Gets the minimum value of the elements of the ArrayMath object. Arguments None Return Value The minimum...

  • ArrayMath.minIndex
    ChartDirector Ver 4.1 (C++ Edition) ArrayMath .minIndex Usage int minIndex() const; Description Gets the index of the minimum value element of the ArrayMath object. Arguments None Return Value The...

  • ArrayMath.movAvg
    ChartDirector Ver 4.1 (C++ Edition) ArrayMath .movAvg Usage ArrayMath& movAvg(int interval); Description Replaces each element of the ArrayMath object by its moving average. The interval...

  • ArrayMath.movCorr
    ChartDirector Ver 4.1 (C++ Edition) ArrayMath .movCorr Usage ArrayMath& movCorr(int interval, DoubleArray b = DoubleArray()); Description Replaces each element of the ArrayMath object by the...

  • ArrayMath.movMax
    ChartDirector Ver 4.1 (C++ Edition) ArrayMath .movMax Usage ArrayMath& movMax(int interval); Description Replaces each element of the ArrayMath object by its moving maximum. The interval...

  • ArrayMath.movMed
    ChartDirector Ver 4.1 (C++ Edition) ArrayMath .movMed Usage ArrayMath& movMed(int interval); Description Replaces each element of the ArrayMath object by its moving median. The interval parameter...

  • ArrayMath.movMin
    ChartDirector Ver 4.1 (C++ Edition) ArrayMath .movMin Usage ArrayMath& movMin(int interval); Description Replaces each element of the ArrayMath object by its moving minimum. The interval...

  • ArrayMath.movPercentile
    ChartDirector Ver 4.1 (C++ Edition) ArrayMath .movPercentile Usage ArrayMath& movPercentile(int interval, double percentile); Description Replaces each element of the ArrayMath object by its...

  • ArrayMath.movStdDev
    ChartDirector Ver 4.1 (C++ Edition) ArrayMath .movStdDev Usage ArrayMath& movStdDev(int interval); Description Replaces each element of the ArrayMath object by its moving standard deviation. The...

  • ArrayMath.mul
    ChartDirector Ver 4.1 (C++ Edition) ArrayMath .mul Usage ArrayMath& mul(DoubleArray b); Description Multiplies an array to the ArrayMath object. The array will be multiplied by multiplying each...

  • ArrayMath.mul2
    ChartDirector Ver 4.1 (C++ Edition) ArrayMath .mul2 Usage ArrayMath& mul(double b); Description Multiplies a number to every element of the ArrayMath object. Arguments Argument Default...

  • ArrayMath.percentile
    ChartDirector Ver 4.1 (C++ Edition) ArrayMath .percentile Usage double percentile(double p) const; Description Gets the required percentile value of the elements of the ArrayMath object. Arguments...

  • ArrayMath.rate
    ChartDirector Ver 4.1 (C++ Edition) ArrayMath .rate Usage ArrayMath &rate(int offset = 1); Description Divides each element of the ArrayMath object by an earlier element in the same ArrayMath...

  • ArrayMath.replace
    ChartDirector Ver 4.1 (C++ Edition) ArrayMath .replace Usage ArrayMath& replace(double a, double b); Description Finds elements that are equal to a given value and replace it with another value....

  • ArrayMath.result
    ChartDirector Ver 4.1 (C++ Edition) ArrayMath .result Usage DoubleArray result() const; Description Gets the content of the ArrayMath object as a normal array to be used in other ChartDirector API....

  • ArrayMath.selectEQZ
    ChartDirector Ver 4.1 (C++ Edition) ArrayMath .selectEQZ Usage ArrayMath& selectEQZ(DoubleArray decisionArray = DoubleArray(), double fillValue = 0); Description Selects the elements of the...

  • ArrayMath.selectGEZ
    ChartDirector Ver 4.1 (C++ Edition) ArrayMath .selectGEZ Usage ArrayMath& selectGEZ(DoubleArray decisionArray = DoubleArray(), double fillValue = 0); Description Selects the elements of the...

  • ArrayMath.selectGTZ
    ChartDirector Ver 4.1 (C++ Edition) ArrayMath .selectGTZ Usage ArrayMath& selectGTZ(DoubleArray decisionArray = DoubleArray(), double fillValue = 0); Description Selects the elements of the...

  • ArrayMath.selectLEZ
    ChartDirector Ver 4.1 (C++ Edition) ArrayMath .selectLEZ Usage ArrayMath& selectLEZ(DoubleArray decisionArray = DoubleArray(), double fillValue = 0); Description Selects the elements of the...

  • ArrayMath.selectLTZ
    ChartDirector Ver 4.1 (C++ Edition) ArrayMath .selectLTZ Usage ArrayMath& selectLTZ(DoubleArray decisionArray = DoubleArray(), double fillValue = 0); Description Selects the elements of the...

  • ArrayMath.selectNEZ
    ChartDirector Ver 4.1 (C++ Edition) ArrayMath .selectNEZ Usage ArrayMath& selectNEZ(DoubleArray decisionArray = DoubleArray(), double fillValue = 0); Description Selects the elements of the...

  • ArrayMath.selectRegularSpacing
    ChartDirector Ver 4.1 (C++ Edition) ArrayMath .selectRegularSpacing Usage ArrayMath& selectRegularSpacing(int majorTickStep, int minorTickStep = 0, int initialMargin = 0); Description Selects an...

  • ArrayMath.selectStartOfDay
    ChartDirector Ver 4.1 (C++ Edition) ArrayMath .selectStartOfDay Usage ArrayMath& selectStartOfDay(int majorTickStep = 1, double initialMargin = 10800); Description Selects the elements of the...

  • ArrayMath.selectStartOfHour
    ChartDirector Ver 4.1 (C++ Edition) ArrayMath .selectStartOfHour Usage ArrayMath& selectStartOfHour(int majorTickStep = 1, double initialMargin = 300); Description Selects the elements of the...

  • ArrayMath.selectStartOfMonth
    ChartDirector Ver 4.1 (C++ Edition) ArrayMath .selectStartOfMonth Usage ArrayMath& selectStartOfMonth(int majorTickStep = 1, double initialMargin = 432000); Description Selects the elements of...

  • ArrayMath.selectStartOfWeek
    ChartDirector Ver 4.1 (C++ Edition) ArrayMath .selectStartOfWeek Usage ArrayMath& selectStartOfWeek(int majorTickStep = 1, double initialMargin = 172800); Description Selects the elements of the...

  • ArrayMath.selectStartOfYear
    ChartDirector Ver 4.1 (C++ Edition) ArrayMath .selectStartOfYear Usage ArrayMath& selectStartOfYear(int majorTickStep = 1, double initialMargin = 5184000); Description Selects the elements of the...

  • ArrayMath.shift
    ChartDirector Ver 4.1 (C++ Edition) ArrayMath .shift Usage ArrayMath &shift(int offset = 1, double fillValue = NoValue); Description Shifts the array "rightwards". If the array does not have any...

  • ArrayMath.stdDev
    ChartDirector Ver 4.1 (C++ Edition) ArrayMath .stdDev Usage double stdDev() const; Description Gets the stdDev value of the elements of the ArrayMath object. Arguments None Return Value The stdDev...

  • ArrayMath.sub
    ChartDirector Ver 4.1 (C++ Edition) ArrayMath .sub Usage ArrayMath& sub(DoubleArray b); Description Subtracts an array from the ArrayMath object. The array will be subtracted by subtracting each...

  • ArrayMath.sub2
    ChartDirector Ver 4.1 (C++ Edition) ArrayMath .sub2 Usage ArrayMath& sub(double b); Description Subtracts a number from every element of the ArrayMath object. Arguments Argument Default...

  • ArrayMath.sum
    ChartDirector Ver 4.1 (C++ Edition) ArrayMath .sum Usage double sum() const; Description Gets the sum value of the elements of the ArrayMath object. Arguments None Return Value The sum value of the...

  • ArrayMath.trim
    ChartDirector Ver 4.1 (C++ Edition) ArrayMath .trim Usage ArrayMath& trim(int startIndex = 0, int len = -1); Description Trims the ArrayMath object by keeping only some elements in the middle....

  • Axis.addLabel
    ChartDirector Ver 4.1 (C++ Edition) Axis .addLabel Usage void addLabel(double pos, const char *label); Description Adds an extra label on the axis. Arguments Argument Default Description pos...

  • Axis.addMark
    ChartDirector Ver 4.1 (C++ Edition) Axis .addMark Usage Mark *addMark(double value, int lineColor, const char *text = 0, const char *font = 0, double fontSize = 8); Description Adds a mark line to...

  • Axis.addZone
    ChartDirector Ver 4.1 (C++ Edition) Axis .addZone Usage void addZone(double startValue, double endValue, int color); Description Adds a zone to the chart. A zone is a range of values. For example,...

  • Axis.copyAxis
    ChartDirector Ver 4.1 (C++ Edition) Axis .copyAxis Usage void copyAxis(const Axis *axis); Description Copies the scale and labels from another axis. This method is typically used to ensure the axes...

  • Axis.getAxisImageMap
    ChartDirector Ver 4.1 (C++ Edition) Axis .getAxisImageMap Usage const char *getAxisImageMap(int noOfSegments, int mapWidth, const char *url, const char *queryFormat = 0, const char *extraAttr = 0,...

  • Axis.getHTMLImageMap
    ChartDirector Ver 4.1 (C++ Edition) Axis .getHTMLImageMap Usage const char *getHTMLImageMap(const char *url, const char *queryFormat = 0, const char *extraAttr = 0, int offsetX = 0, int offsetY = 0)...

  • Axis.getLabel
    ChartDirector Ver 4.1 (C++ Edition) Axis .getLabel Usage const char *getLabel(double i) const; Description Gets the label at the specified position on the axis. Arguments Argument Default Description...

  • Axis.getMaxValue
    ChartDirector Ver 4.1 (C++ Edition) Axis .getMaxValue Usage double getMaxValue() const; Description Gets the upper bound of the axis. The upper bound of an axis is known only after auto-scaling. So...

  • Axis.getMinValue
    ChartDirector Ver 4.1 (C++ Edition) Axis .getMinValue Usage double getMinValue() const; Description Gets the lower bound of the axis. The lower bound of an axis is known only after auto-scaling. So...

  • Axis.getTicks
    ChartDirector Ver 4.1 (C++ Edition) Axis .getTicks Usage DoubleArray getTicks() const; Description Gets the values of the ticks. The ticks on the axis is known only after auto-scaling. So this method...

  • Axis
    ChartDirector Ver 4.1 (C++ Edition) Axis The Axis class represents x and y axes in XY charts. Method Inherited Description setLabelStyle (Self) Sets the font style used to for the axis labels....

  • Axis.setAutoScale
    ChartDirector Ver 4.1 (C++ Edition) Axis .setAutoScale Usage void setAutoScale(double topExtension = 0.1, double bottomExtension = 0.1, double zeroAffinity = 0.8); Description Sets the margins at the...

  • Axis.setColors
    ChartDirector Ver 4.1 (C++ Edition) Axis .setColors Usage void setColors(int axisColor, int labelColor = TextColor, int titleColor = -1, int tickColor = -1); Description Sets the colors of the axis...

  • Axis.setDateScale
    ChartDirector Ver 4.1 (C++ Edition) Axis .setDateScale Usage void setDateScale(double lowerLimit, double upperLimit, double majorTickInc = 0, double minorTickInc = 0); Description Sets the axis to...

  • Axis.setDateScale2
    ChartDirector Ver 4.1 (C++ Edition) Axis .setDateScale2 Usage void setDateScale(double lowerLimit, double upperLimit, StringArray labels); Description Sets the axis to use the given date scale and...

  • Axis.setDateScale3
    ChartDirector Ver 4.1 (C++ Edition) Axis .setDateScale3 Usage void setDateScale(const char *formatString = 0); Description Sets the axis to use date auto-scale. Arguments Argument Default Description...

  • Axis.setFormatCondition
    ChartDirector Ver 4.1 (C++ Edition) Axis .setFormatCondition Usage void setFormatCondition(const char *condition, double operand = 0); Description Specifies the condition that subsequent...

  • Axis.setIndent
    ChartDirector Ver 4.1 (C++ Edition) Axis .setIndent Usage void setIndent(bool indent); Description Specifies if the axis should be "indented" or not. Normally, the x-axis is automatically scaled so...

  • Axis.setLabelFormat
    ChartDirector Ver 4.1 (C++ Edition) Axis .setLabelFormat Usage void setLabelFormat(const char *formatString); Description Sets the format for numeric or date/time axis labels. By default,...

  • Axis.setLabelGap
    ChartDirector Ver 4.1 (C++ Edition) Axis .setLabelGap Usage void setLabelGap(int d); Description Sets the distance between the axis labels and the ticks on the axis. Arguments Argument Default...

  • Axis.setLabelOffset
    ChartDirector Ver 4.1 (C++ Edition) Axis .setLabelOffset Usage void setLabelOffset(double offset); Description Shifts the axis labels from its default position along the axis. This method expects the...

  • Axis.setLabels
    ChartDirector Ver 4.1 (C++ Edition) Axis .setLabels Usage TextBox *setLabels(StringArray text); Description Sets the text labels to be used on the axis. This method is typically used to set the...

  • Axis.setLabels2
    ChartDirector Ver 4.1 (C++ Edition) Axis .setLabels2 Usage TextBox *setLabels(DoubleArray labels, const char *formatString = 0); Description Sets the numeric/date/time labels to be used on the axis....

  • Axis.setLabelStep
    ChartDirector Ver 4.1 (C++ Edition) Axis .setLabelStep Usage void setLabelStep(int majorTickStep, int minorTickStep = 0, int majorTickOffset = 0, int minorTickOffset = -0x7fffffff); Description Shows...

  • Axis.setLabelStyle
    ChartDirector Ver 4.1 (C++ Edition) Axis .setLabelStyle Usage TextBox *setLabelStyle(const char *font = 0, double fontSize = 8, int fontColor = TextColor, double fontAngle = 0); Description Sets the...

  • Axis.setLinearScale
    ChartDirector Ver 4.1 (C++ Edition) Axis .setLinearScale Usage void setLinearScale(double lowerLimit, double upperLimit, double majorTickInc = 0, double minorTickInc = 0); Description Sets the axis...

  • Axis.setLinearScale2
    ChartDirector Ver 4.1 (C++ Edition) Axis .setLinearScale2 Usage void setLinearScale(double lowerLimit, double upperLimit, StringArray labels); Description Sets the axis to use the given linear scale...

  • Axis.setLinearScale3
    ChartDirector Ver 4.1 (C++ Edition) Axis .setLinearScale3 Usage void setLinearScale(const char *formatString = 0); Description Sets the axis to use linear auto-scale. Arguments Argument Default...

  • Axis.setLogScale
    ChartDirector Ver 4.1 (C++ Edition) Axis .setLogScale Usage void setLogScale(double lowerLimit, double upperLimit, double majorTickInc = 0, double minorTickInc = 0); Description Sets the axis to use...

  • Axis.setLogScale2
    ChartDirector Ver 4.1 (C++ Edition) Axis .setLogScale2 Usage void setLogScale(double lowerLimit, double upperLimit, StringArray labels); Description Sets the axis to use the given logarithmic scale...

  • Axis.setLogScale3
    ChartDirector Ver 4.1 (C++ Edition) Axis .setLogScale3 Usage void setLogScale(const char *formatString = 0); Description Sets the axis to use logarithmic auto-scale. Arguments Argument Default...

  • Axis.setMargin
    ChartDirector Ver 4.1 (C++ Edition) Axis .setMargin Usage void setMargin(int topMargin, int bottomMargin = 0); Description Reserve margins at the ends of the axis. This method is usually used to...

  • Axis.setMinTickInc
    ChartDirector Ver 4.1 (C++ Edition) Axis .setMinTickInc Usage void setMinTickInc(double inc); Description Sets the minimum distance between two ticks on the axis for auto-scaled axis. The most common...

  • Axis.setMultiFormat
    ChartDirector Ver 4.1 (C++ Edition) Axis .setMultiFormat Usage void setMultiFormat(int filter1, const char *format1, int filter2, const char *format2, int labelSpan = 1, bool promoteFirst = true);...

  • Axis.setMultiFormat2
    ChartDirector Ver 4.1 (C++ Edition) Axis .setMultiFormat2 Usage void setMultiFormat(int filterId, const char *formatString, int labelSpan = 1, bool promoteFirst = true); Description Adds one filter...

  • Axis.setReverse
    ChartDirector Ver 4.1 (C++ Edition) Axis .setReverse Usage void setReverse(bool b = true); Description Reverse the axis. For a normal vertical axis, the axis starts from the bottom and increase its...

  • Axis.setRounding
    ChartDirector Ver 4.1 (C++ Edition) Axis .setRounding Usage void setRounding(bool roundMin, bool roundMax); Description Controls whether to round the ends of the axis to align with tick positions....

  • Axis.setTickColor
    ChartDirector Ver 4.1 (C++ Edition) Axis .setTickColor Usage void setTickColor(int majorTickColor, int minorTickColor = -1); Description Sets the colors of the axis ticks. Arguments Argument Default...

  • Axis.setTickDensity
    ChartDirector Ver 4.1 (C++ Edition) Axis .setTickDensity Usage void setTickDensity(int majorTickSpacing, int minorTickSpacing = -1); Description Sets the density of the axis ticks. Tick density is...

  • Axis.setTickLength
    ChartDirector Ver 4.1 (C++ Edition) Axis .setTickLength Usage void setTickLength(int majorTickLen); Description Sets the length of the axis ticks. A positive tick length means the ticks are drawn...

  • Axis.setTickLength2
    ChartDirector Ver 4.1 (C++ Edition) Axis .setTickLength2 Usage void setTickLength(int majorTickLen, int minorTickLen); Description Sets the length of the major and minor axis ticks. A positive tick...

  • Axis.setTickOffset
    ChartDirector Ver 4.1 (C++ Edition) Axis .setTickOffset Usage void setTickOffset(double offset); Description Shifts the position of the ticks along the axis. By default, ChartDirector draws the ticks...

  • Axis.setTickWidth
    ChartDirector Ver 4.1 (C++ Edition) Axis .setTickWidth Usage void setTickWidth(int majorTickWidth, int minorTickWidth = -1); Description Sets the width of the axis ticks. Arguments Argument Default...

  • Axis.setTitle
    ChartDirector Ver 4.1 (C++ Edition) Axis .setTitle Usage TextBox *setTitle(const char *text, const char *font = 0, double fontSize = 8, int fontColor = TextColor); Description Adds a title to the...

  • Axis.setTitlePos
    ChartDirector Ver 4.1 (C++ Edition) Axis .setTitlePos Usage void setTitlePos(int alignment, int titleGap = 3); Description Sets the position of the axis title relative to the axis. By default, the...

  • Axis.setWidth
    ChartDirector Ver 4.1 (C++ Edition) Axis .setWidth Usage void setWidth(int width); Description Sets the line width of the axis. Arguments Argument Default Description width (Mandatory) The line width...

  • Axis.syncAxis
    ChartDirector Ver 4.1 (C++ Edition) Axis .syncAxis Usage void syncAxis(const Axis *axis, double slope = 1, double intercept = 0); Description Synchronizes this axis with another axis using a linear...

  • Y-Axis Scaling
    ChartDirector Ver 4.1 (C++ Edition) Y-Axis Scaling             This example demonstrates how to control auto-scaling. By default, ChartDirector auto-scales all...

  • Background and Wallpaper
    ChartDirector Ver 4.1 (C++ Edition) Background and Wallpaper          This example demonstrates some of the background effects supported by ChartDirector. ChartDirector...

  • Bar Charts
    ChartDirector Ver 4.1 (C++ Edition) Bar Charts Title Description Simple Bar Chart Demonstrates the basic steps in creating bar charts. Multi-Color Bar Chart Demonstrates creating a multi-color bar...

  • BarLayer
    ChartDirector Ver 4.1 (C++ Edition) BarLayer The BarLayer class represents bar layers. BarLayer is a subclass of Layer . BarLayer objects are created using XYChart.addBarLayer , XYChart.addBarLayer2...

  • BarLayer.setBarGap
    ChartDirector Ver 4.1 (C++ Edition) BarLayer .setBarGap Usage void setBarGap(double barGap, double subBarGap = 0.2); Description Sets the gap between the bars in a bar chart layer. In the setBarGap...

  • BarLayer.setBarShape
    ChartDirector Ver 4.1 (C++ Edition) BarLayer .setBarShape Usage void setBarShape(int shape, int dataGroup = -1, int dataItem = -1); Description Sets the shape of the bar(s) using built-in shapes....

  • BarLayer.setBarShape2
    ChartDirector Ver 4.1 (C++ Edition) BarLayer .setBarShape2 Usage void setBarShape(IntArray shape, int dataGroup = -1, int dataItem = -1); Description Sets the shape of the bar(s) to a custom shape...

  • BarLayer.setBarWidth
    ChartDirector Ver 4.1 (C++ Edition) BarLayer .setBarWidth Usage void setBarWidth(int barWidth, int subBarWidth = -1); Description Sets the width of the bars. Arguments Argument Default Description...

  • BarLayer.setIconSize
    ChartDirector Ver 4.1 (C++ Edition) BarLayer .setIconSize Usage void setIconSize(int height, int width = -1); Description Sets the size of the icon(s) to be used in legend box. By default, if a...

  • BarLayer.setMinLabelSize
    ChartDirector Ver 4.1 (C++ Edition) BarLayer .setMinLabelSize Usage void setMinLabelSize(int s); Description Sets the minimum height (or width for horizontal bars) of the bar segments below which...

  • BarLayer.setOverlapRatio
    ChartDirector Ver 4.1 (C++ Edition) BarLayer .setOverlapRatio Usage void setOverlapRatio(double overlapRatio, bool firstOnTop = true); Description Sets overlapping among bars in within a bar group in...

  • BaseBoxLayer
    ChartDirector Ver 4.1 (C++ Edition) BaseBoxLayer The BaseBoxLayer class is the base class for layers that uses isolated symbols to represent multiple data sets. These include BoxWhiskerLayer ,...

  • BaseBoxLayer.setDataGap
    ChartDirector Ver 4.1 (C++ Edition) BaseBoxLayer .setDataGap Usage void setDataGap(double gap); Description Sets the symbol width by specifying the gap ratio between adjacent symbols. Arguments...

  • BaseBoxLayer.setDataWidth
    ChartDirector Ver 4.1 (C++ Edition) BaseBoxLayer .setDataWidth Usage void setDataWidth(int width); Description Sets the symbol width by specifying the pixel width of the symbols. Arguments Argument...

  • BaseChart.addExtraField
    ChartDirector Ver 4.1 (C++ Edition) BaseChart .addExtraField Usage void addExtraField(StringArray texts); Description Adds an array of text to be used as an extra field in various places. This method...

  • BaseChart.addExtraField2
    ChartDirector Ver 4.1 (C++ Edition) BaseChart .addExtraField2 Usage void addExtraField(DoubleArray numbers); Description Adds an array of numbers/dates to be used as an extra field in various places....

  • BaseChart.addLegend
    ChartDirector Ver 4.1 (C++ Edition) BaseChart .addLegend Usage LegendBox *addLegend(int x, int y, bool vertical = true, const char *font = 0, double fontSize = 10); Description Adds a legend box to...

  • BaseChart.addLegend2
    ChartDirector Ver 4.1 (C++ Edition) BaseChart .addLegend2 Usage LegendBox *addLegend2(int x, int y, int noOfCols, const char *font = 0, double fontSize = 10); Description Adds a legend box to the...

  • BaseChart.addLine
    ChartDirector Ver 4.1 (C++ Edition) BaseChart .addLine Usage Line *addLine(int x1, int y1, int x2, int y2, int color = LineColor, int lineWidth = 1); Description Adds a line to the chart. Arguments...

  • BaseChart.addText
    ChartDirector Ver 4.1 (C++ Edition) BaseChart .addText Usage TextBox *addText(int x, int y, const char *text, const char *font = 0, double fontSize = 8, int fontColor = TextColor, int alignment =...

  • BaseChart.addTitle
    ChartDirector Ver 4.1 (C++ Edition) BaseChart .addTitle Usage TextBox *addTitle(const char *text, const char *font = 0, double fontSize = 12, int fontColor = TextColor, int bgColor = Transparent, int...

  • BaseChart.addTitle2
    ChartDirector Ver 4.1 (C++ Edition) BaseChart .addTitle2 Usage TextBox *addTitle(int alignment, const char *text, const char *font = 0, double fontSize = 12, int fontColor = TextColor, int bgColor =...

  • BaseChart.dashLineColor
    ChartDirector Ver 4.1 (C++ Edition) BaseChart .dashLineColor Usage int dashLineColor(int color, int patternCode = DashLine); Description Creates a dash line color. A dash line color is a dynamic...

  • BaseChart.formatValue
    ChartDirector Ver 4.1 (C++ Edition) BaseChart .formatValue Usage const char *formatValue(double value, const char *formatString); Description Formats a number/date using the ChartDirector formatting...

  • BaseChart.getChartMetrics
    ChartDirector Ver 4.1 (C++ Edition) BaseChart .getChartMetrics Usage const char *getChartMetrics(); Description Gets the chart metrics for passing to CChartViewer to support view ports. The format of...

  • BaseChart.getColor
    ChartDirector Ver 4.1 (C++ Edition) BaseChart .getColor Usage int getColor(int paletteEntry); Description Gets the color at the specified position of the palette. See Color Specification on how...

  • BaseChart.getDrawArea
    ChartDirector Ver 4.1 (C++ Edition) BaseChart .getDrawArea Usage DrawArea *getDrawArea(); Description Retrieves the internal DrawArea object that is used to draw the chart. The most common reason of...

  • BaseChart.getHTMLImageMap
    ChartDirector Ver 4.1 (C++ Edition) BaseChart .getHTMLImageMap Usage const char *getHTMLImageMap(const char *url, const char *queryFormat = 0, const char *extraAttr = 0, int offsetX = 0, int offsetY...

  • BaseChart.getLegend
    ChartDirector Ver 4.1 (C++ Edition) BaseChart .getLegend Usage LegendBox *getLegend(); Description Gets the LegendBox object representing the legend box in the chart. The LegendBox obtains using this...

  • BaseChart.gradientColor
    ChartDirector Ver 4.1 (C++ Edition) BaseChart .gradientColor Usage int gradientColor(int startX, int startY, int endX, int endY, int startColor, int endColor); Description Creates a two-point linear...

  • BaseChart.gradientColor2
    ChartDirector Ver 4.1 (C++ Edition) BaseChart .gradientColor2 Usage int gradientColor(IntArray colorArray, double angle = 90, double scale = 1.0, int startX = 0, int startY = 0); Description Creates...

  • BaseChart.halfColor
    ChartDirector Ver 4.1 (C++ Edition) BaseChart .halfColor Usage int halfColor(int c); Description Creates a color that is half the intensity of the given color. Arguments Argument Default Description...

  • BaseChart
    ChartDirector Ver 4.1 (C++ Edition) BaseChart The BaseChart class is an abstract class containing methods that are common to all chart types. Method Inherited Description setSize (Self) Sets the size...

  • BaseChart.layout
    ChartDirector Ver 4.1 (C++ Edition) BaseChart .layout Usage void layout(); Description Perform auto-scaling of the axis and compute the positions of the various objects in the chart. BaseChart.layout...

  • BaseChart.layoutLegend
    ChartDirector Ver 4.1 (C++ Edition) BaseChart .layoutLegend Usage LegendBox *layoutLegend(); Description Lays out and gets the LegendBox object representing the legend box in the chart. Once the...

  • BaseChart.linearGradientColor
    ChartDirector Ver 4.1 (C++ Edition) BaseChart .linearGradientColor Usage int linearGradientColor(int startX, int startY, int endX, int endY, int startColor, int endColor, bool periodic = false);...

  • BaseChart.linearGradientColor2
    ChartDirector Ver 4.1 (C++ Edition) BaseChart .linearGradientColor2 Usage int linearGradientColor(int startX, int startY, int endX, int endY, IntArray colorArray, bool periodic = false); Description...

  • BaseChart.makeChart
    ChartDirector Ver 4.1 (C++ Edition) BaseChart .makeChart Usage bool makeChart(const char *filename); Description Generates the chart image and save it into a file. ChartDirector supports PNG, JPG,...

  • BaseChart.makeChart2
    ChartDirector Ver 4.1 (C++ Edition) BaseChart .makeChart2 Usage MemBlock makeChart(int format); Description Generates the chart as an image in memory. This method is most often used to output the...

  • BaseChart.makeChart3
    ChartDirector Ver 4.1 (C++ Edition) BaseChart .makeChart3 Usage DrawArea *makeChart(); Description Generates the chart in internal format and return a DrawArea object to allow adding custom drawings...

  • BaseChart.patternColor
    ChartDirector Ver 4.1 (C++ Edition) BaseChart .patternColor Usage int patternColor(IntArray colorArray, int height, int startX = 0, int startY = 0); Description Creates a pattern color using an array...

  • BaseChart.patternColor2
    ChartDirector Ver 4.1 (C++ Edition) BaseChart .patternColor2 Usage int patternColor(const char *filename, int startX = 0, int startY = 0); Description Creates a pattern color by loading the pattern...

  • BaseChart.radialGradientColor
    ChartDirector Ver 4.1 (C++ Edition) BaseChart .radialGradientColor Usage int radialGradientColor(int cx, int cy, int rx, int ry, int startColor, int endColor, bool periodic = false); Description...

  • BaseChart.radialGradientColor2
    ChartDirector Ver 4.1 (C++ Edition) BaseChart .radialGradientColor2 Usage int radialGradientColor(int cx, int cy, int rx, int ry, IntArray colorArray, bool periodic = false); Description Creates a...

  • BaseChart.setAMPM
    ChartDirector Ver 4.1 (C++ Edition) BaseChart .setAMPM Usage void setAMPM(const char *am, const char *pm); Description Sets the names to be used to denote morning and afternoon. The default is to use...

  • BaseChart.setAntiAlias
    ChartDirector Ver 4.1 (C++ Edition) BaseChart .setAntiAlias Usage void setAntiAlias(bool shapeAntiAlias = true, int textAntiAlias = AutoAntiAlias); Description Controls whether anti-alias is used...

  • BaseChart.setBackground
    ChartDirector Ver 4.1 (C++ Edition) BaseChart .setBackground Usage void setBackground(int color, int edgeColor = Transparent, int raisedEffect = 0); Description Sets the background color, border...

  • BaseChart.setBgImage
    ChartDirector Ver 4.1 (C++ Edition) BaseChart .setBgImage Usage void setBgImage(const char *img, int align = Center); Description Uses the image from the specified file as the background image of the...

  • BaseChart.setBorder
    ChartDirector Ver 4.1 (C++ Edition) BaseChart .setBorder Usage void setBorder(int color); Description Sets the border color of the chart. Arguments Argument Default Description color (Mandatory) The...

  • BaseChart.setColor
    ChartDirector Ver 4.1 (C++ Edition) BaseChart .setColor Usage void setColor(int paletteEntry, int color); Description Change the color at the specified position in the palette. See Color...

  • BaseChart.setColors
    ChartDirector Ver 4.1 (C++ Edition) BaseChart .setColors Usage void setColors(IntArray colors); Description Change the colors in the palette. See Color Specification on how colors are represented in...

  • BaseChart.setColors2
    ChartDirector Ver 4.1 (C++ Edition) BaseChart .setColors2 Usage void setColors(int paletteEntry, IntArray colors); Description Change the colors in the palette, starting from the specified position...

  • BaseChart.setDefaultFonts
    ChartDirector Ver 4.1 (C++ Edition) BaseChart .setDefaultFonts Usage void setDefaultFonts(const char *normal, const char *bold = 0, const char *italic = 0, const char *boldItalic = 0); Description...

  • BaseChart.setFontTable
    ChartDirector Ver 4.1 (C++ Edition) BaseChart .setFontTable Usage void setFontTable(int index, const char *font); Description Sets an entry in the font table to the specified font name. The first 4...

  • BaseChart.setMonthNames
    ChartDirector Ver 4.1 (C++ Edition) BaseChart .setMonthNames Usage void setMonthNames(StringArray names); Description Sets the names of the months for date/time formatting purposes. The default is to...

  • BaseChart.setNumberFormat
    ChartDirector Ver 4.1 (C++ Edition) BaseChart .setNumberFormat Usage void setNumberFormat(char thousandSeparator = '~', char decimalPointChar = '.', char signChar = '-'); Description Sets the...

  • BaseChart.setRoundedFrame
    ChartDirector Ver 4.1 (C++ Edition) BaseChart .setRoundedFrame Usage void setRoundedFrame(int extColor = 0xffffff, int r1 = 10, int r2 = -1, int r3 = -1, int r4 = -1); Description Sets the border...

  • BaseChart.setSearchPath
    ChartDirector Ver 4.1 (C++ Edition) BaseChart .setSearchPath Usage void setSearchPath(const char *path); Description Sets the file system search path for loading image files. Several ChartDirector...

  • BaseChart.setSize
    ChartDirector Ver 4.1 (C++ Edition) BaseChart .setSize Usage void setSize(int width, int height); Description Sets the size of the chart. Arguments Argument Default Description width (Mandatory) The...

  • BaseChart.setTransparentColor
    ChartDirector Ver 4.1 (C++ Edition) BaseChart .setTransparentColor Usage void setTransparentColor(int c); Description Specifies a certain color to mean transparent when creating the image output, or...

  • BaseChart.setWallpaper
    ChartDirector Ver 4.1 (C++ Edition) BaseChart .setWallpaper Usage void setWallpaper(const char *img); Description Uses the image from the specified file as the wallpaper to repetitively fill the...

  • BaseChart.setWeekDayNames
    ChartDirector Ver 4.1 (C++ Edition) BaseChart .setWeekDayNames Usage void setWeekDayNames(StringArray names); Description Sets the names of the week days for date/time formatting purposes. The...

  • BaseMeter.addLabel
    ChartDirector Ver 4.1 (C++ Edition) BaseMeter .addLabel Usage void addLabel(double pos, const char *label); Description Adds a label to a specific position on the meter scale. By default, all labels...

  • BaseMeter.addPointer
    ChartDirector Ver 4.1 (C++ Edition) BaseMeter .addPointer Usage MeterPointer *addPointer(double value, int fillColor = LineColor, int edgeColor = -1); Description Adds a pointer to the meter....

  • BaseMeter.getCoor
    ChartDirector Ver 4.1 (C++ Edition) BaseMeter .getCoor Usage int getCoor(double v) const; Description Gets the geometric coordinates given the data value. For an angular meter, this method returns...

  • BaseMeter.getLabel
    ChartDirector Ver 4.1 (C++ Edition) BaseMeter .getLabel Usage const char *getLabel(double i) const; Description Gets the label at the specified position on the meter scale. Arguments Argument Default...

  • BaseMeter.getTicks
    ChartDirector Ver 4.1 (C++ Edition) BaseMeter .getTicks Usage DoubleArray getTicks() const; Description Returns the positions of all ticks as values on the meter scale. Arguments None Return Value...

  • BaseMeter
    ChartDirector Ver 4.1 (C++ Edition) BaseMeter The BaseMeter class represents a generic meter. It is the base class for AngularMeter and LinearMeter . Method Inherited Description setScale (Self) Sets...

  • BaseMeter.setLabelFormat
    ChartDirector Ver 4.1 (C++ Edition) BaseMeter .setLabelFormat Usage void setLabelFormat(const char *formatString); Description Sets the format of the labels computed by ChartDirector. The method is...

  • BaseMeter.setLabelPos
    ChartDirector Ver 4.1 (C++ Edition) BaseMeter .setLabelPos Usage void setLabelPos(bool labelInside, int labelOffset = 0); Description Sets the positions of the meter scale labels. Arguments Argument...

  • BaseMeter.setLabelStyle
    ChartDirector Ver 4.1 (C++ Edition) BaseMeter .setLabelStyle Usage TextBox *setLabelStyle(const char *font = "bold", double fontSize = -1, int fontColor = TextColor, double fontAngle = 0);...

  • BaseMeter.setLineWidth
    ChartDirector Ver 4.1 (C++ Edition) BaseMeter .setLineWidth Usage void setLineWidth(int axisWidth, int majorTickWidth = 1, int minorTickWidth = 1, int microTickWidth = 1); Description Sets the line...

  • BaseMeter.setMeterColors
    ChartDirector Ver 4.1 (C++ Edition) BaseMeter .setMeterColors Usage void setMeterColors(int axisColor, int labelColor = -1, int tickColor = -1); Description Sets the colors of the meter scale line,...

  • BaseMeter.setScale
    ChartDirector Ver 4.1 (C++ Edition) BaseMeter .setScale Usage void setScale(double lowerLimit, double upperLimit, double majorTickInc = 0, double minorTickInc = 0, double microTickInc = 0);...

  • BaseMeter.setScale2
    ChartDirector Ver 4.1 (C++ Edition) BaseMeter .setScale2 Usage void setScale(double lowerLimit, double upperLimit, StringArray labels); Description Sets the meter to use the given scale with the...

  • BaseMeter.setScale3
    ChartDirector Ver 4.1 (C++ Edition) BaseMeter .setScale3 Usage void setScale(double lowerLimit, double upperLimit, DoubleArray labels, const char *formatString = 0); Description Sets the meter to use...

  • BaseMeter.setTickLength
    ChartDirector Ver 4.1 (C++ Edition) BaseMeter .setTickLength Usage void setTickLength(int majorLen, int minorLen = -0x7fffffff, int microLen = -0x7fffffff); Description Set the lengths of the ticks....

  • Box.getHeight
    ChartDirector Ver 4.1 (C++ Edition) Box .getHeight Usage int getHeight() const; Description Gets the height of the box. In some usages, the height of a box may be dynamically determined. An example...

  • Box.getImageCoor
    ChartDirector Ver 4.1 (C++ Edition) Box .getImageCoor Usage const char *getImageCoor(int offsetX = 0, int offsetY = 0); Description Gets the image map coordinates of the box as HTML image map...

  • Box.getWidth
    ChartDirector Ver 4.1 (C++ Edition) Box .getWidth Usage int getWidth() const; Description Gets the width of the box. In some usages, the width of a box may be dynamically determined. An example is...

  • Box
    ChartDirector Ver 4.1 (C++ Edition) Box The Box class represents boxes. It is used as the base class for more complex classes (such as the TextBox class). Method Inherited Description setPos (Self)...

  • Box.setBackground
    ChartDirector Ver 4.1 (C++ Edition) Box .setBackground Usage void setBackground(int color, int edgeColor = -1, int raisedEffect = 0); Description Sets the background color, border color and 3D border...

  • Box.setPos
    ChartDirector Ver 4.1 (C++ Edition) Box .setPos Usage void setPos(int x, int y); Description Sets the coordinates of the top-left corner of the box. Arguments Argument Default Description x...

  • Box.setRoundedCorners
    ChartDirector Ver 4.1 (C++ Edition) Box .setRoundedCorners Usage void setRoundedCorners(int r1 = 10, int r2 = -1, int r3 = -1, int r4 = -1); Description Sets the border style to use rounded corners....

  • Box.setSize
    ChartDirector Ver 4.1 (C++ Edition) Box .setSize Usage void setSize(int w, int h); Description Sets the width and height of the box. Arguments Argument Default Description w (Mandatory) The width of...

  • Box.setZOrder
    ChartDirector Ver 4.1 (C++ Edition) Box .setZOrder Usage void setZOrder(int z); Description Sets the z-order (drawing order) for custom box objects. The setZOrder method of the Box object only...

  • Box-Whisker Chart
    ChartDirector Ver 4.1 (C++ Edition) Box-Whisker Chart This example demonstrates creating a box-whisker chart. A standard box-whisker chart plots up to 5 data sets using box-whisker symbols. The 5...

  • Horizontal Box-Whisker Chart
    ChartDirector Ver 4.1 (C++ Edition) Horizontal Box-Whisker Chart This example demonstrates creating a multi-color horizontal box-whisker chart. XYChart.addBoxWhiskerLayer2 is used to create the...

  • Floating Box/Waterfall Charts
    ChartDirector Ver 4.1 (C++ Edition) Floating Box/Waterfall Charts Title Description Box-Whisker Chart Demonstrates creating a box-whisker chart. Horizontal Box-Whisker Chart Demonstrates creating a...

  • BoxWhiskerLayer
    ChartDirector Ver 4.1 (C++ Edition) BoxWhiskerLayer The BoxWhiskerLayer class represents box-whisker layers. It is a subclass of BaseBoxLayer . BoxWhiskerLayer objects are created by using...

  • BoxWhiskerLayer.setBoxColor
    ChartDirector Ver 4.1 (C++ Edition) BoxWhiskerLayer .setBoxColor Usage void setBoxColor(int item, int boxColor); Description Sets the color for a single box. Arguments Argument Default Description...

  • BoxWhiskerLayer.setBoxColors
    ChartDirector Ver 4.1 (C++ Edition) BoxWhiskerLayer .setBoxColors Usage void setBoxColors(IntArray colors, StringArray names = StringArray()); Description Sets the colors for all boxes. The method...

  • BoxWhiskerLayer.setWhiskerBrightness
    ChartDirector Ver 4.1 (C++ Edition) BoxWhiskerLayer .setWhiskerBrightness Usage void setWhiskerBrightness(double whiskerBrightness); Description Sets the whisker colors as darken or brightened fill...

  • Bubble Chart
    ChartDirector Ver 4.1 (C++ Edition) Bubble Chart This example demonstrates how to create a bubble chart. In ChartDirector, a bubble chart can be created as a scatter layer with circles as symbols...

  • Bubble XY Scaling
    ChartDirector Ver 4.1 (C++ Edition) Bubble XY Scaling This example demonstrates a bubble chart with independent x and y bubble sizes and non-circular bubbles. In ChartDirector, a bubble chart in...

  • Built-In Symbols
    ChartDirector Ver 4.1 (C++ Edition) Built-In Symbols This example demonstrates the built-in symbols supported by ChartDirector. Source Code Listing [The following code is available in...

  • Candlestick Chart
    ChartDirector Ver 4.1 (C++ Edition) Candlestick Chart This example demonstrates a candlestick chart. Create a candlestick layer using XYChart.addCandleStickLayer . Add custom text to the top left...

  • CandleStickLayer
    ChartDirector Ver 4.1 (C++ Edition) CandleStickLayer The CandleStickLayer class represents candlestick layers. It is a subclass of BaseBoxLayer . CandleStickLayer objects are created by using...

  • CChartViewer.getChart
    ChartDirector Ver 4.1 (C++ Edition) CChartViewer .getChart Usage BaseChart *getChart(); Description Gets the BaseChart pointer provided by the previous CChartViewer.setChart method call. Arguments...

  • CChartViewer.getImageMapHandler
    ChartDirector Ver 4.1 (C++ Edition) CChartViewer .getImageMapHandler Usage ImageMapHandler *getImageMapHandler(); Description Gets the ImageMapHandler object for the current image map. By using the...

  • CChartViewer.getMinDragAmount
    ChartDirector Ver 4.1 (C++ Edition) CChartViewer .getMinDragAmount Usage int getMinDragAmount(); Description Gets the minimum mouse drag distance before it is considered as an intentional drag....

  • CChartViewer.getMinimumDrag
    ChartDirector Ver 4.1 (C++ Edition) CChartViewer .getMinimumDrag Usage int getMinimumDrag(); Description Gets the minimum mouse drag distance before it is considered as an intentional drag. Arguments...

  • CChartViewer.getMouseUsage
    ChartDirector Ver 4.1 (C++ Edition) CChartViewer .getMouseUsage Usage int getMouseUsage(); Description Gets the mouse usage mode of the control. Arguments None Return Value An integer representing...

  • CChartViewer.getScrollDirection
    ChartDirector Ver 4.1 (C++ Edition) CChartViewer .getScrollDirection Usage int getScrollDirection(); Description Gets the scroll direction for mouse scroll actions. Please refer to...

  • CChartViewer.getSelectionBorderColor
    ChartDirector Ver 4.1 (C++ Edition) CChartViewer .getSelectionBorderColor Usage COLORREF getSelectionBorderColor(); Description Gets the border color of the zoom selection box. Arguments None Return...

  • CChartViewer.getSelectionBorderWidth
    ChartDirector Ver 4.1 (C++ Edition) CChartViewer .getSelectionBorderWidth Usage int getSelectionBorderWidth(); Description Gets the border width of the zoom selection box. Arguments None Return Value...

  • CChartViewer.getToolTipCtrl
    ChartDirector Ver 4.1 (C++ Edition) CChartViewer .getToolTipCtrl Usage CToolTipCtrl *getToolTipCtrl(); Description Gets the MFC CToolTipCtrl object used by CChartViewer for handling the tool tips....

  • CChartViewer.getUpdateInterval
    ChartDirector Ver 4.1 (C++ Edition) CChartViewer .getUpdateInterval Usage int getUpdateInterval(); Description Gets the minimum gap interval between two CVN_ViewPortChanged messages in milliseconds....

  • CChartViewer.getZoomDirection
    ChartDirector Ver 4.1 (C++ Edition) CChartViewer .getZoomDirection Usage int getZoomDirection(); Description Gets the zoom direction for mouse zoom in/out actions. Please refer to...

  • CChartViewer.getZoomInRatio
    ChartDirector Ver 4.1 (C++ Edition) CChartViewer .getZoomInRatio Usage double getZoomInRatio(); Description Gets the magnification ratio for each zoom in click of the mouse. For zoom in, the ratio...

  • CChartViewer.getZoomOutRatio
    ChartDirector Ver 4.1 (C++ Edition) CChartViewer .getZoomOutRatio Usage double getZoomOutRatio(); Description Gets the magnification ratio for each zoom out click of the mouse. For zoom out, the...

  • CChartViewer
    ChartDirector Ver 4.1 (C++ Edition) CChartViewer CChartViewer is a derived class of the MFC CStatic control. It is used in MFC applications for displaying chart images and to handle mouse...

  • CChartViewer.needUpdateChart
    ChartDirector Ver 4.1 (C++ Edition) CChartViewer .needUpdateChart Usage bool needUpdateChart(); Description Determines if the current CVN_ViewPortChanged message requires chart update. The message...

  • CChartViewer.needUpdateImageMap
    ChartDirector Ver 4.1 (C++ Edition) CChartViewer .needUpdateImageMap Usage bool needUpdateImageMap(); Description Determines if the current CVN_ViewPortChanged message requires image map update. The...

  • CChartViewer.setChart
    ChartDirector Ver 4.1 (C++ Edition) CChartViewer .setChart Usage void setChart(BaseChart *c); Description Sets a BaseChart object for display. CChartViewer stores the BaseChart pointer internally so...

  • CChartViewer.setDefaultToolTip
    ChartDirector Ver 4.1 (C++ Edition) CChartViewer .setDefaultToolTip Usage void setDefaultToolTip(LPCTSTR text); Description Sets the default tool tip to use when the mouse is over the CChartViewer...

  • CChartViewer.setImageMap
    ChartDirector Ver 4.1 (C++ Edition) CChartViewer .setImageMap Usage void setImageMap(const char *imageMap); Description Sets the image map that defines the hot spots on the chart image. The...

  • CChartViewer.setMinDragAmount
    ChartDirector Ver 4.1 (C++ Edition) CChartViewer .setMinDragAmount Usage void setMinDragAmount(int offset); Description Sets the minimum mouse drag distance before it is considered as an intentional...

  • CChartViewer.setMinimumDrag
    ChartDirector Ver 4.1 (C++ Edition) CChartViewer .setMinimumDrag Usage void setMinimumDrag(int offset); Description Sets the minimum mouse drag distance before it is considered as an intentional...

  • CChartViewer.setMouseUsage
    ChartDirector Ver 4.1 (C++ Edition) CChartViewer .setMouseUsage Usage void setMouseUsage(int mouseUsage); Description Sets the mouse usage mode of the control. The following table describes the...

  • CChartViewer.setScrollDirection
    ChartDirector Ver 4.1 (C++ Edition) CChartViewer .setScrollDirection Usage void setScrollDirection(int direction); Description Sets the scroll direction for mouse scroll actions. Please refer to...

  • CChartViewer.setSelectionBorderColor
    ChartDirector Ver 4.1 (C++ Edition) CChartViewer .setSelectionBorderColor Usage void setSelectionBorderColor(COLORREF color); Description Sets the border color of the zoom selection box as a Win32...

  • CChartViewer.setSelectionBorderWidth
    ChartDirector Ver 4.1 (C++ Edition) CChartViewer .setSelectionBorderWidth Usage void setSelectionBorderWidth(int width); Description Sets the border width of the zoom selection box. Arguments...

  • CChartViewer.setUpdateInterval
    ChartDirector Ver 4.1 (C++ Edition) CChartViewer .setUpdateInterval Usage void setUpdateInterval(int interval); Description Sets the minimum gap interval between two CVN_ViewPortChanged messages in...

  • CChartViewer.setZoomDirection
    ChartDirector Ver 4.1 (C++ Edition) CChartViewer .setZoomDirection Usage void setZoomDirection(int direction); Description Sets the zoom direction for mouse zoom in/out actions. In zoom operations...

  • CChartViewer.setZoomInRatio
    ChartDirector Ver 4.1 (C++ Edition) CChartViewer .setZoomInRatio Usage void setZoomInRatio(double ratio); Description Sets the magnification ratio for each zoom in click of the mouse. For zoom in,...

  • CChartViewer.setZoomOutRatio
    ChartDirector Ver 4.1 (C++ Edition) CChartViewer .setZoomOutRatio Usage void setZoomOutRatio(double ratio); Description Sets the magnification ratio for each zoom out click of the mouse. For zoom...

  • CChartViewer.updateViewPort
    ChartDirector Ver 4.1 (C++ Edition) CChartViewer .updateViewPort Usage void updateViewPort(bool needUpdateChart, bool needUpdateImageMap); Description Triggers the CVN_ViewPortChanged message....

  • ChartDirector Mark Up Language
    ChartDirector Ver 4.1 (C++ Edition) ChartDirector Mark Up Language ChartDirector Mark Up Language (CDML) is a language for including formatting information in text strings by marking up the text with...

  • ChartDirector Reference
    ChartDirector Ver 4.1 (C++ Edition) ChartDirector Reference This sector contains reference documentation for all ChartDirector classes and methods, as well as the data types and other conventions...

  • Chart.AggregateAvg
    ChartDirector Ver 4.1 (C++ Edition) Chart .AggregateAvg Declaration static const int AggregateAvg; Description A constant equals to 1 to represent using the average as the aggregated value in...

  • Chart.AggregateCount
    ChartDirector Ver 4.1 (C++ Edition) Chart .AggregateCount Declaration static const int AggregateCount; Description A constant equals to 9 to represent using the item count as the aggregated value in...

  • Chart.AggregateFirst
    ChartDirector Ver 4.1 (C++ Edition) Chart .AggregateFirst Declaration static const int AggregateFirst; Description A constant equals to 7 to represent using the first value as the aggregated value in...

  • Chart.AggregateLast
    ChartDirector Ver 4.1 (C++ Edition) Chart .AggregateLast Declaration static const int AggregateLast; Description A constant equals to 8 to represent using the last value as the aggregated value in...

  • Chart.AggregateMax
    ChartDirector Ver 4.1 (C++ Edition) Chart .AggregateMax Declaration static const int AggregateMax; Description A constant equals to 5 to represent using the maximum value as the aggregated value in...

  • Chart.AggregateMed
    ChartDirector Ver 4.1 (C++ Edition) Chart .AggregateMed Declaration static const int AggregateMed; Description A constant equals to 4 to represent using the median value as the aggregated value in...

  • Chart.AggregateMin
    ChartDirector Ver 4.1 (C++ Edition) Chart .AggregateMin Declaration static const int AggregateMin; Description A constant equals to 3 to represent using the minimum value as the aggregated value in...

  • Chart.AggregatePercentile
    ChartDirector Ver 4.1 (C++ Edition) Chart .AggregatePercentile Declaration static const int AggregatePercentile; Description A constant equals to 6 to represent using the percentile value as the...

  • Chart.AggregateStdDev
    ChartDirector Ver 4.1 (C++ Edition) Chart .AggregateStdDev Declaration static const int AggregateStdDev; Description A constant equals to 2 to represent using the standard deviation as the aggregated...

  • Chart.AggregateSum
    ChartDirector Ver 4.1 (C++ Edition) Chart .AggregateSum Declaration static const int AggregateSum; Description A constant equals to 0 to represent using the sum as the aggregated value in...

  • Chart.AllPassFilter
    ChartDirector Ver 4.1 (C++ Edition) Chart .AllPassFilter Usage int AllPassFilter(); Description Creates a data filter that matches every element. This method is typically used in Axis.setMultiFormat...

  • Chart.AltDashLine
    ChartDirector Ver 4.1 (C++ Edition) Chart .AltDashLine Declaration static const int AltDashLine; Description A constant equals to 0A050505 (in hex) to represent a alternating long/short dash line...

  • Chart.AngularAxisScale
    ChartDirector Ver 4.1 (C++ Edition) Chart .AngularAxisScale Declaration static const int AngularAxisScale; Description A constant equals to 1 to represent that the size is measured using the...

  • Chart.AntiAlias
    ChartDirector Ver 4.1 (C++ Edition) Chart .AntiAlias Declaration static const int AntiAlias; Description A constant equals to 1 to represent that text should be drawn with anti-alias. This constant...

  • Chart.ArrowPointer
    ChartDirector Ver 4.1 (C++ Edition) Chart .ArrowPointer Declaration static const int ArrowPointer; Description A constant equals to 2 to represent the arrow style meter pointer. This constant is used...

  • Chart.ArrowPointer2
    ChartDirector Ver 4.1 (C++ Edition) Chart .ArrowPointer2 Declaration static const int ArrowPointer2; Description A constant equals to 3 to represent the alternative arrow style meter pointer. This...

  • Chart.AutoAntiAlias
    ChartDirector Ver 4.1 (C++ Edition) Chart .AutoAntiAlias Declaration static const int AutoAntiAlias; Description A constant equals to 2 to represent that text should be drawn with anti-alias if...

  • Chart.AutoGrid
    ChartDirector Ver 4.1 (C++ Edition) Chart .AutoGrid Declaration static const int AutoGrid; Description A constant equals to -2 to represent that the number of columns in the legend box with grid...

  • Chart.BackgroundColor
    ChartDirector Ver 4.1 (C++ Edition) Chart .BackgroundColor Declaration static const int BackgroundColor; Description A constant equals to FFFF0000 (in hex) to represent the background color. See...

  • Chart.BesselFilter
    ChartDirector Ver 4.1 (C++ Edition) Chart .BesselFilter Declaration static const int BesselFilter; Description A constant equals to 13 to represent a Bessel graphical re-sampling filter. Please refer...

  • Chart.BlackmanFilter
    ChartDirector Ver 4.1 (C++ Edition) Chart .BlackmanFilter Declaration static const int BlackmanFilter; Description A constant equals to 12 to represent a Blackman graphical re-sampling filter. Please...

  • Chart.blueMetalGradient
    ChartDirector Ver 4.1 (C++ Edition) Chart .blueMetalGradient Declaration static const int[] blueMetalGradient; Description A constant array of integers to represent a gradient that looks like a blue...

  • Chart.BMP
    ChartDirector Ver 4.1 (C++ Edition) Chart .BMP Declaration static const int BMP; Description A constant equals to 4 to represent the BMP image format. This constant is used in BaseChart.makeChart2 ....

  • Chart.Bottom
    ChartDirector Ver 4.1 (C++ Edition) Chart .Bottom Declaration static const int Bottom; Description A constant equals to 2 to represent the bottom position. See Alignment Specification for supported...

  • Chart.BottomCenter
    ChartDirector Ver 4.1 (C++ Edition) Chart .BottomCenter Declaration static const int BottomCenter; Description A constant equals to 2 to represent the bottom center position. See Alignment...

  • Chart.BottomLeft
    ChartDirector Ver 4.1 (C++ Edition) Chart .BottomLeft Declaration static const int BottomLeft; Description A constant equals to 1 to represent the bottom left position. See Alignment Specification...

  • Chart.BottomLeft2
    ChartDirector Ver 4.1 (C++ Edition) Chart .BottomLeft2 Declaration static const int BottomLeft2; Description A constant equals to 12 to represent the alternative exterior bottom left position. See...

  • Chart.BottomRight
    ChartDirector Ver 4.1 (C++ Edition) Chart .BottomRight Declaration static const int BottomRight; Description A constant equals to 3 to represent the bottom right position. See Alignment Specification...

  • Chart.BottomRight2
    ChartDirector Ver 4.1 (C++ Edition) Chart .BottomRight2 Declaration static const int BottomRight2; Description A constant equals to 13 to represent the alternative exterior bottom right position. See...

  • Chart.BoxFilter
    ChartDirector Ver 4.1 (C++ Edition) Chart .BoxFilter Declaration static const int BoxFilter; Description A constant equals to 0 to represent a Box graphical re-sampling filter. Please refer to...

  • Chart.BSplineFilter
    ChartDirector Ver 4.1 (C++ Edition) Chart .BSplineFilter Declaration static const int BSplineFilter; Description A constant equals to 3 to represent a B-spline graphical re-sampling filter. Please...

  • Chart.CatromFilter
    ChartDirector Ver 4.1 (C++ Edition) Chart .CatromFilter Declaration static const int CatromFilter; Description A constant equals to 5 to represent a Catrom graphical re-sampling filter. Please refer...

  • Chart.Center
    ChartDirector Ver 4.1 (C++ Edition) Chart .Center Declaration static const int Center; Description A constant equals to 5 to represent the center position. See Alignment Specification for supported...

  • Chart.ChartBackZ
    ChartDirector Ver 4.1 (C++ Edition) Chart .ChartBackZ Declaration static const int ChartBackZ; Description A constant equals to 100 (in hex) to represent the z-order of the back surface of the chart....

  • Chart.ChartFrontZ
    ChartDirector Ver 4.1 (C++ Edition) Chart .ChartFrontZ Declaration static const int ChartFrontZ; Description A constant equals to ffff (in hex) to represent the z-order of the front surface of the...

  • Chart.chartTime
    ChartDirector Ver 4.1 (C++ Edition) Chart .chartTime Usage double chartTime(int y, int m, int d, int h = 0, int n = 0, int s = 0); Description Obtain the second elapsed since 01-01-0001 00:00:00 to...

  • Chart.chartTime2
    ChartDirector Ver 4.1 (C++ Edition) Chart .chartTime2 Usage double chartTime2(int t); Description Converts a UNIX time (seconds elapsed since 01-01-1970 00:00:00 GMT) to the date/time format used by...

  • Chart.CircleLayout
    ChartDirector Ver 4.1 (C++ Edition) Chart .CircleLayout Declaration static const int CircleLayout; Description A constant equals to 1 to represent the circular label layout method for pie/donut...

  • Chart.CircleShape
    ChartDirector Ver 4.1 (C++ Edition) Chart .CircleShape Declaration static const int CircleShape; Description A constant equals to 7 to represent a circle. Please refer to Shape Specification for...

  • Chart.Cross2Shape
    ChartDirector Ver 4.1 (C++ Edition) Chart .Cross2Shape Usage int Cross2Shape(double width); Description Gets the shape id that represents a 'X' shape. Please refer to Shape Specification for samples...

  • Chart.CrossShape
    ChartDirector Ver 4.1 (C++ Edition) Chart .CrossShape Usage int CrossShape(double width); Description Gets the shape id that represents a '+' shape. Please refer to Shape Specification for samples...

  • Chart.DashLine
    ChartDirector Ver 4.1 (C++ Edition) Chart .DashLine Declaration static const int DashLine; Description A constant equals to 0505 (in hex) to represent a dash line pattern for use in dash colors. See...

  • Chart.DataColor
    ChartDirector Ver 4.1 (C++ Edition) Chart .DataColor Declaration static const int DataColor; Description A constant equals to FFFF0008 (in hex) to represent the starting index of automatic data...

  • Chart.defaultPalette
    ChartDirector Ver 4.1 (C++ Edition) Chart .defaultPalette Declaration static const int[] defaultPalette; Description A constant array of integers to represent the default palette. The array is in a...

  • Chart.DiamondPointer
    ChartDirector Ver 4.1 (C++ Edition) Chart .DiamondPointer Declaration static const int DiamondPointer; Description A constant equals to 0 to represent the diamond style meter pointer. This constant...

  • Chart.DiamondShape
    ChartDirector Ver 4.1 (C++ Edition) Chart .DiamondShape Declaration static const int DiamondShape; Description A constant equals to 2 to represent a diamond shape. Please refer to Shape Specification...

  • Chart.DirectionHorizontal
    ChartDirector Ver 4.1 (C++ Edition) Chart .DirectionHorizontal Declaration static const int DirectionHorizontal; Description A constant equals to 0 to represent that the zoom and/or scroll...

  • Chart.DirectionHorizontalVertical
    ChartDirector Ver 4.1 (C++ Edition) Chart .DirectionHorizontalVertical Declaration static const int DirectionHorizontalVertical; Description A constant equals to 2 to represent that the zoom and/or...

  • Chart.DirectionVertical
    ChartDirector Ver 4.1 (C++ Edition) Chart .DirectionVertical Declaration static const int DirectionVertical; Description A constant equals to 1 to represent that the zoom and/or scroll orientation is...

  • Chart.DotDashLine
    ChartDirector Ver 4.1 (C++ Edition) Chart .DotDashLine Declaration static const int DotDashLine; Description A constant equals to 05050205 (in hex) to represent a dot-dash line pattern for use in...

  • Chart.DotLine
    ChartDirector Ver 4.1 (C++ Edition) Chart .DotLine Declaration static const int DotLine; Description A constant equals to 0202 (in hex) to represent a dotted line pattern for use in dash colors. See...

  • Chart.ErrorDiffusion
    ChartDirector Ver 4.1 (C++ Edition) Chart .ErrorDiffusion Declaration static const int ErrorDiffusion; Description A constant equals to 2 to represent that the error diffusion dithering method should...

  • Chart.ForcePalette
    ChartDirector Ver 4.1 (C++ Edition) Chart .ForcePalette Declaration static const int ForcePalette; Description A constant equals to 1 to represent that palette based image format should always be...

  • Chart.GaussianFilter
    ChartDirector Ver 4.1 (C++ Edition) Chart .GaussianFilter Declaration static const int GaussianFilter; Description A constant equals to 9 to represent a Gaussian graphical re-sampling filter. Please...

  • Chart.getBootLog
    ChartDirector Ver 4.1 (C++ Edition) Chart .getBootLog Usage void getBootLog(char *buffer); Description A diagnostic function to obtain the ChartDirector boot log. Currently, ChartDirector does not...

  • Chart.getChartWeekDay
    ChartDirector Ver 4.1 (C++ Edition) Chart .getChartWeekDay Usage int getChartWeekDay(double t); Description Gets the weekday represented by a ChartDirector date/time . Arguments Argument Default...

  • Chart.getChartYMD
    ChartDirector Ver 4.1 (C++ Edition) Chart .getChartYMD Usage int getChartYMD(double t); Description Gets the year, month and day represented by a ChartDirector date/time . Arguments Argument Default...

  • Chart.getVersion
    ChartDirector Ver 4.1 (C++ Edition) Chart .getVersion Usage int getVersion(); Description Gets ChartDirector version information. The version number is encoded as a 32-bit integer. The most...

  • Chart.GIF
    ChartDirector Ver 4.1 (C++ Edition) Chart .GIF Declaration static const int GIF; Description A constant equals to 1 to represent the GIF image format. This constant is used in BaseChart.makeChart2 ....

  • Chart.glassEffect
    ChartDirector Ver 4.1 (C++ Edition) Chart .glassEffect Usage int glassEffect(int glareSize = NormalGlare, int glareDirection = Top, int raisedEffect = 5); Description A complex shading effect that...

  • Chart.goldColor
    ChartDirector Ver 4.1 (C++ Edition) Chart .goldColor Usage int goldColor(int angle = 90); Description Creates a golden color, most commonly used as a background color. This method is a short cut to...

  • Chart.goldGradient
    ChartDirector Ver 4.1 (C++ Edition) Chart .goldGradient Declaration static const int[] goldGradient; Description A constant array of integers to represent a gradient that looks like a golden color....

  • Chart.greenMetalGradient
    ChartDirector Ver 4.1 (C++ Edition) Chart .greenMetalGradient Declaration static const int[] greenMetalGradient; Description A constant array of integers to represent a gradient that looks like a...

  • Chart.GridLinesZ
    ChartDirector Ver 4.1 (C++ Edition) Chart .GridLinesZ Declaration static const int GridLinesZ; Description A constant equals to 2000 (in hex) to represent the z-order of the grid lines of the chart....

  • Chart.HammingFilter
    ChartDirector Ver 4.1 (C++ Edition) Chart .HammingFilter Declaration static const int HammingFilter; Description A constant equals to 11 to represent a Hamming graphical re-sampling filter. Please...

  • Chart.HanningFilter
    ChartDirector Ver 4.1 (C++ Edition) Chart .HanningFilter Declaration static const int HanningFilter; Description A constant equals to 10 to represent a Hanning graphical re-sampling filter. Please...

  • Chart.HermiteFilter
    ChartDirector Ver 4.1 (C++ Edition) Chart .HermiteFilter Declaration static const int HermiteFilter; Description A constant equals to 4 to represent a Hermite graphical re-sampling filter. Please...

  • Chart.HLOCDefault
    ChartDirector Ver 4.1 (C++ Edition) Chart .HLOCDefault Declaration static const int HLOCDefault; Description A constant equals to 0 to represent that the HLOC symbols should be drawn using the same...

  • Chart.HLOCOpenClose
    ChartDirector Ver 4.1 (C++ Edition) Chart .HLOCOpenClose Declaration static const int HLOCOpenClose; Description A constant equals to 1 to represent that the HLOC symbols should be drawn using two...

  • Chart.HLOCUpDown
    ChartDirector Ver 4.1 (C++ Edition) Chart .HLOCUpDown Declaration static const int HLOCUpDown; Description A constant equals to 2 to represent that the HLOC symbols should be drawn using two...

  • Chart
    ChartDirector Ver 4.1 (C++ Edition) Chart Chart is a namespace for all ChartDirector global functions and predefined constants. Properties Name Description NoValue A constant equals to 1.7E+308 to...

  • Chart.InvertedTriangleShape
    ChartDirector Ver 4.1 (C++ Edition) Chart .InvertedTriangleShape Declaration static const int InvertedTriangleShape; Description A constant equals to 6 to represent a triangle pointing downwards....

  • Chart.JPG
    ChartDirector Ver 4.1 (C++ Edition) Chart .JPG Declaration static const int JPG; Description A constant equals to 2 to represent the JPG image format. This constant is used in BaseChart.makeChart2 ....

  • Chart.LanczosFilter
    ChartDirector Ver 4.1 (C++ Edition) Chart .LanczosFilter Declaration static const int LanczosFilter; Description A constant equals to 8 to represent a Lanczos graphical re-sampling filter. Please...

  • Chart.Left
    ChartDirector Ver 4.1 (C++ Edition) Chart .Left Declaration static const int Left; Description A constant equals to 4 to represent the left position. See Alignment Specification for supported...

  • Chart.LeftTriangleShape
    ChartDirector Ver 4.1 (C++ Edition) Chart .LeftTriangleShape Declaration static const int LeftTriangleShape; Description A constant equals to 5 to represent a triangle pointing leftwards. Please...

  • Chart.LinearFilter
    ChartDirector Ver 4.1 (C++ Edition) Chart .LinearFilter Declaration static const int LinearFilter; Description A constant equals to 1 to represent a Linear graphical re-sampling filter. Please refer...

  • Chart.LineColor
    ChartDirector Ver 4.1 (C++ Edition) Chart .LineColor Declaration static const int LineColor; Description A constant equals to FFFF0001 (in hex) to represent the default line color. See Color...

  • Chart.LinePointer
    ChartDirector Ver 4.1 (C++ Edition) Chart .LinePointer Declaration static const int LinePointer; Description A constant equals to 4 to represent the line style meter pointer. This constant is used in...

  • Chart.LogTick
    ChartDirector Ver 4.1 (C++ Edition) Chart .LogTick Declaration static const double LogTick; Description A constant equals to +1.6e308 to represent that the ticks in a log scale axis should be 1 - 2 -...

  • Chart.metalColor
    ChartDirector Ver 4.1 (C++ Edition) Chart .metalColor Usage int metalColor(int c, int angle = 90); Description Creates a color by modulates the brightness of another color to create metallic shiny...

  • Chart.MicroTickOnly
    ChartDirector Ver 4.1 (C++ Edition) Chart .MicroTickOnly Declaration static const double MicroTickOnly; Description A constant equals to -1.6e308 to represent that the label position should contain a...

  • Chart.MinorTickOnly
    ChartDirector Ver 4.1 (C++ Edition) Chart .MinorTickOnly Declaration static const double MinorTickOnly; Description A constant equals to -1.7e308 to represent that the label position should contain a...

  • Chart.MitchellFilter
    ChartDirector Ver 4.1 (C++ Edition) Chart .MitchellFilter Declaration static const int MitchellFilter; Description A constant equals to 6 to represent a Mitchell graphical re-sampling filter. Please...

  • Chart.MouseUsageDefault
    ChartDirector Ver 4.1 (C++ Edition) Chart .MouseUsageDefault Declaration static const int MouseUsageDefault; Description A constant equals to 0 to represent using the default mouse behaviour. This...

  • Chart.MouseUsageScroll
    ChartDirector Ver 4.1 (C++ Edition) Chart .MouseUsageScroll Declaration static const int MouseUsageScroll; Description A constant equals to 1 to represent using the mouse for drag scrolling. This...

  • Chart.MouseUsageZoomIn
    ChartDirector Ver 4.1 (C++ Edition) Chart .MouseUsageZoomIn Declaration static const int MouseUsageZoomIn; Description A constant equals to 3 to represent using the mouse for zoom in actions. This...

  • Chart.MouseUsageZoomOut
    ChartDirector Ver 4.1 (C++ Edition) Chart .MouseUsageZoomOut Declaration static const int MouseUsageZoomOut; Description A constant equals to 4 to represent using the mouse for zoom out actions. This...

  • Chart.NoAntiAlias
    ChartDirector Ver 4.1 (C++ Edition) Chart .NoAntiAlias Declaration static const int NoAntiAlias; Description A constant equals to 0 to represent that text should be drawn without using anti-alias....

  • Chart.NoGlare
    ChartDirector Ver 4.1 (C++ Edition) Chart .NoGlare Declaration static const int NoGlare; Description A constant equals to 1 to represent disabling the glare in Chart::glassEffect shading style. ©...

  • Chart.NoLegend
    ChartDirector Ver 4.1 (C++ Edition) Chart .NoLegend Declaration static const int NoLegend; Description A constant equals to 2 to represent that no legend keys should be added to the legend box. This...

  • Chart.NonePassFilter
    ChartDirector Ver 4.1 (C++ Edition) Chart .NonePassFilter Usage int NonePassFilter(); Description Creates a data filter that matches no element. This method is typically used in Axis.setMultiFormat...

  • Chart.NoPalette
    ChartDirector Ver 4.1 (C++ Edition) Chart .NoPalette Declaration static const int NoPalette; Description A constant equals to 2 to represent that true color image format should always be used. This...

  • Chart.NormalGlare
    ChartDirector Ver 4.1 (C++ Edition) Chart .NormalGlare Declaration static const int NormalGlare; Description A constant equals to 3 to represent using normal glare strength in Chart::glassEffect...

  • Chart.NormalLegend
    ChartDirector Ver 4.1 (C++ Edition) Chart .NormalLegend Declaration static const int NormalLegend; Description A constant equals to 0 to represent that the legend keys order should follow the...

  • Chart.NoValue
    ChartDirector Ver 4.1 (C++ Edition) Chart .NoValue Declaration static const double NoValue; Description A constant equals to 1.7E+308 to represent missing values in ChartDirector. Please refer to No...

  • Chart.OrderedDither
    ChartDirector Ver 4.1 (C++ Edition) Chart .OrderedDither Declaration static const int OrderedDither; Description A constant equals to 1 to represent that the ordered dithering method should be used...

  • Chart.Overlay
    ChartDirector Ver 4.1 (C++ Edition) Chart .Overlay Declaration static const int Overlay; Description A constant equals to 0 to represent the "Overlay" data representation method for multiple data...

  • Chart.Palette
    ChartDirector Ver 4.1 (C++ Edition) Chart .Palette Declaration static const int Palette; Description A constant equals to FFFF0000 (in hex) to represent the starting index of the color palette. See...

  • Chart.PencilPointer
    ChartDirector Ver 4.1 (C++ Edition) Chart .PencilPointer Declaration static const int PencilPointer; Description A constant equals to 5 to represent the pencil style meter pointer. This constant is...

  • Chart.Percentage
    ChartDirector Ver 4.1 (C++ Edition) Chart .Percentage Declaration static const int Percentage; Description A constant equals to 4 to represent the "Percentage" data representation method for multiple...

  • Chart.PixelScale
    ChartDirector Ver 4.1 (C++ Edition) Chart .PixelScale Declaration static const int PixelScale; Description A constant equals to 0 to represent that the size is measured in pixels. This constant is...

  • Chart.PlotAreaZ
    ChartDirector Ver 4.1 (C++ Edition) Chart .PlotAreaZ Declaration static const int PlotAreaZ; Description A constant equals to 1000 (in hex) to represent the z-order of the plot area back surface of...

  • Chart.PNG
    ChartDirector Ver 4.1 (C++ Edition) Chart .PNG Declaration static const int PNG; Description A constant equals to 0 to represent the PNG image format. This constant is used in BaseChart.makeChart2 ....

  • Chart.Polygon2Shape
    ChartDirector Ver 4.1 (C++ Edition) Chart .Polygon2Shape Usage int Polygon2Shape(int side); Description Gets the shape id that represents a polygon in an alternative orientation. Please refer to...

  • Chart.PolygonShape
    ChartDirector Ver 4.1 (C++ Edition) Chart .PolygonShape Usage int PolygonShape(int side); Description Gets the shape id that represents a polygon. Please refer to Shape Specification for samples and...

  • Chart.QuadraticFilter
    ChartDirector Ver 4.1 (C++ Edition) Chart .QuadraticFilter Declaration static const int QuadraticFilter; Description A constant equals to 2 to represent a Quadratic graphical re-sampling filter....

  • Chart.Quantize
    ChartDirector Ver 4.1 (C++ Edition) Chart .Quantize Declaration static const int Quantize; Description A constant equals to 0 to represent that the quantize dithering method should be used if...

  • Chart.RadialAxisScale
    ChartDirector Ver 4.1 (C++ Edition) Chart .RadialAxisScale Declaration static const int RadialAxisScale; Description A constant equals to 2 to represent that the size is measured using the...

  • Chart.redMetalGradient
    ChartDirector Ver 4.1 (C++ Edition) Chart .redMetalGradient Declaration static const int[] redMetalGradient; Description A constant array of integers to represent a gradient that looks like a red...

  • Chart.ReducedGlare
    ChartDirector Ver 4.1 (C++ Edition) Chart .ReducedGlare Declaration static const int ReducedGlare; Description A constant equals to 2 to represent using reduced glare strength in Chart::glassEffect...

  • Chart.RegularSpacingFilter
    ChartDirector Ver 4.1 (C++ Edition) Chart .RegularSpacingFilter Usage int RegularSpacingFilter(int labelStep = 1, double initialMargin = 0); Description Creates a data filter that matches 1 out of...

  • Chart.ReverseLegend
    ChartDirector Ver 4.1 (C++ Edition) Chart .ReverseLegend Declaration static const int ReverseLegend; Description A constant equals to 1 to represent that the legend keys order is the reverse of the...

  • Chart.Right
    ChartDirector Ver 4.1 (C++ Edition) Chart .Right Declaration static const int Right; Description A constant equals to 6 to represent the right position. See Alignment Specification for supported...

  • Chart.RightTriangleShape
    ChartDirector Ver 4.1 (C++ Edition) Chart .RightTriangleShape Declaration static const int RightTriangleShape; Description A constant equals to 4 to represent a triangle pointing rightwards. Please...

  • Chart.SameAsMainColor
    ChartDirector Ver 4.1 (C++ Edition) Chart .SameAsMainColor Declaration static const int SameAsMainColor; Description A constant equals to FFFF0007 (in hex) to represent the current main color. See...

  • Chart.SelectItemFilter
    ChartDirector Ver 4.1 (C++ Edition) Chart .SelectItemFilter Usage int SelectItemFilter(int item); Description Creates a data filter that matches the specified item. This method is typically used in...

  • Chart.setLicenseCode
    ChartDirector Ver 4.1 (C++ Edition) Chart .setLicenseCode Usage bool setLicenseCode(const char *licCode, char *buffer = 0); Description Sets the license code into ChartDirector. ChartDirector will...

  • Chart.Side
    ChartDirector Ver 4.1 (C++ Edition) Chart .Side Declaration static const int Side; Description A constant equals to 3 to represent the "Side" data representation method for multiple data sets. This...

  • Chart.SideLayout
    ChartDirector Ver 4.1 (C++ Edition) Chart .SideLayout Declaration static const int SideLayout; Description A constant equals to 0 to represent the side label layout method for pie/donut charts. This...

  • Chart.silverColor
    ChartDirector Ver 4.1 (C++ Edition) Chart .silverColor Usage int silverColor(int angle = 90); Description Creates a silver color, most commonly used as a background color. This method is a short cut...

  • Chart.silverGradient
    ChartDirector Ver 4.1 (C++ Edition) Chart .silverGradient Declaration static const int[] silverGradient; Description A constant array of integers to represent a gradient that looks like a silver...

  • Chart.SincFilter
    ChartDirector Ver 4.1 (C++ Edition) Chart .SincFilter Declaration static const int SincFilter; Description A constant equals to 7 to represent a Sinc graphical re-sampling filter. Please refer to...

  • Chart.softLighting
    ChartDirector Ver 4.1 (C++ Edition) Chart .softLighting Usage int softLighting(int direction = Top, int raisedEffect = 4); Description A special shading effect that looks like gradient coloring. This...

  • Chart.SquareShape
    ChartDirector Ver 4.1 (C++ Edition) Chart .SquareShape Declaration static const int SquareShape; Description A constant equals to 1 to represent a square. Please refer to Shape Specification for...

  • Chart.Stack
    ChartDirector Ver 4.1 (C++ Edition) Chart .Stack Declaration static const int Stack; Description A constant equals to 1 to represent the "Stack" data representation method for multiple data sets....

  • Chart.StarShape
    ChartDirector Ver 4.1 (C++ Edition) Chart .StarShape Usage int StarShape(int side); Description Gets the shape id that represents a star shape. Please refer to Shape Specification for samples and...

  • Chart.StartOfDayFilter
    ChartDirector Ver 4.1 (C++ Edition) Chart .StartOfDayFilter Usage int StartOfDayFilter(int labelStep = 1, double initialMargin = 0.05); Description Creates a data filter that matches date/times that...

  • Chart.StartOfHourFilter
    ChartDirector Ver 4.1 (C++ Edition) Chart .StartOfHourFilter Usage int StartOfHourFilter(int labelStep = 1, double initialMargin = 0.05); Description Creates a data filter that matches date/times...

  • Chart.StartOfMonthFilter
    ChartDirector Ver 4.1 (C++ Edition) Chart .StartOfMonthFilter Usage int StartOfMonthFilter(int labelStep = 1, double initialMargin = 0.05); Description Creates a data filter that matches date/times...

  • Chart.StartOfWeekFilter
    ChartDirector Ver 4.1 (C++ Edition) Chart .StartOfWeekFilter Usage int StartOfWeekFilter(int labelStep = 1, double initialMargin = 0.05); Description Creates a data filter that matches date/times...

  • Chart.StartOfYearFilter
    ChartDirector Ver 4.1 (C++ Edition) Chart .StartOfYearFilter Usage int StartOfYearFilter(int labelStep = 1, double initialMargin = 0.05); Description Creates a data filter that matches date/times...

  • Chart.testFont
    ChartDirector Ver 4.1 (C++ Edition) Chart .testFont Usage bool testFont(const char *font, int fontIndex, double fontHeight, double fontWidth, double angle, char *buffer); Description A diagnostic...

  • Chart.TextColor
    ChartDirector Ver 4.1 (C++ Edition) Chart .TextColor Declaration static const int TextColor; Description A constant equals to FFFF0002 (in hex) to represent the default text color. See Color...

  • Chart.Top
    ChartDirector Ver 4.1 (C++ Edition) Chart .Top Declaration static const int Top; Description A constant equals to 8 to represent the top position. See Alignment Specification for supported alignment...

  • Chart.TopCenter
    ChartDirector Ver 4.1 (C++ Edition) Chart .TopCenter Declaration static const int TopCenter; Description A constant equals to 8 to represent the top center position. See Alignment Specification for...

  • Chart.TopLeft
    ChartDirector Ver 4.1 (C++ Edition) Chart .TopLeft Declaration static const int TopLeft; Description A constant equals to 7 to represent the top left position. See Alignment Specification for...

  • Chart.TopLeft2
    ChartDirector Ver 4.1 (C++ Edition) Chart .TopLeft2 Declaration static const int TopLeft2; Description A constant equals to 10 to represent the alternative exterior top left position. See Alignment...

  • Chart.TopRight
    ChartDirector Ver 4.1 (C++ Edition) Chart .TopRight Declaration static const int TopRight; Description A constant equals to 9 to represent the top right position. See Alignment Specification for...

  • Chart.TopRight2
    ChartDirector Ver 4.1 (C++ Edition) Chart .TopRight2 Declaration static const int TopRight2; Description A constant equals to 11 to represent the alternative exterior top right position. See...

  • Chart.TouchBar
    ChartDirector Ver 4.1 (C++ Edition) Chart .TouchBar Declaration static const int TouchBar; Description A constant equals to -1.7e-100 to represent that the bars in a bar layer should touch each...

  • Chart.Transparent
    ChartDirector Ver 4.1 (C++ Edition) Chart .Transparent Declaration static const int Transparent; Description A constant equals to FF000000 (in hex) to represent the transparent color. See Color...

  • Chart.transparentPalette
    ChartDirector Ver 4.1 (C++ Edition) Chart .transparentPalette Declaration static const int[] transparentPalette; Description A constant array of integers to represent the semi-transparent palette....

  • Chart.TriangleShape
    ChartDirector Ver 4.1 (C++ Edition) Chart .TriangleShape Declaration static const int TriangleShape; Description A constant equals to 3 to represent a triangle pointing upwards. Please refer to Shape...

  • Chart.TriangularPointer
    ChartDirector Ver 4.1 (C++ Edition) Chart .TriangularPointer Declaration static const int TriangularPointer; Description A constant equals to 1 to represent the triangular style meter pointer. This...

  • Chart.TryPalette
    ChartDirector Ver 4.1 (C++ Edition) Chart .TryPalette Declaration static const int TryPalette; Description A constant equals to 0 to represent that palette based image format should be used if the...

  • Chart.whiteOnBlackPalette
    ChartDirector Ver 4.1 (C++ Edition) Chart .whiteOnBlackPalette Declaration static const int[] whiteOnBlackPalette; Description A constant array of integers to represent the white on black palette....

  • Chart.WMP
    ChartDirector Ver 4.1 (C++ Edition) Chart .WMP Declaration static const int WMP; Description A constant equals to 3 to represent the WAP bitmap image format. This constant is used in...

  • Chart.XAxisAtOrigin
    ChartDirector Ver 4.1 (C++ Edition) Chart .XAxisAtOrigin Declaration static const int XAxisAtOrigin; Description A constant equals to 1 to represent that the x-axis should intersect with the zero...

  • Chart.XAxisScale
    ChartDirector Ver 4.1 (C++ Edition) Chart .XAxisScale Declaration static const int XAxisScale; Description A constant equals to 1 to represent that the size is measured using the x-axis scale. This...

  • Chart.XAxisSymmetric
    ChartDirector Ver 4.1 (C++ Edition) Chart .XAxisSymmetric Declaration static const int XAxisSymmetric; Description A constant equals to 1 to represent that the x-axis should be symmetrical about the...

  • Chart.XAxisSymmetricIfNeeded
    ChartDirector Ver 4.1 (C++ Edition) Chart .XAxisSymmetricIfNeeded Declaration static const int XAxisSymmetricIfNeeded; Description A constant equals to 2 to represent that the x-axis should be...

  • Chart.XYAxisAtOrigin
    ChartDirector Ver 4.1 (C++ Edition) Chart .XYAxisAtOrigin Declaration static const int XYAxisAtOrigin; Description A constant equals to 3 to represent that the x-axis and y-axis should intersect at...

  • Chart.XYAxisSymmetric
    ChartDirector Ver 4.1 (C++ Edition) Chart .XYAxisSymmetric Declaration static const int XYAxisSymmetric; Description A constant equals to 16 to represent that the the x-axis and y-axis should be...

  • Chart.XYAxisSymmetricIfNeeded
    ChartDirector Ver 4.1 (C++ Edition) Chart .XYAxisSymmetricIfNeeded Declaration static const int XYAxisSymmetricIfNeeded; Description A constant equals to 32 to represent that the x-axis and y-axis...

  • Chart.YAxisAtOrigin
    ChartDirector Ver 4.1 (C++ Edition) Chart .YAxisAtOrigin Declaration static const int YAxisAtOrigin; Description A constant equals to 2 to represent that the y-axis should intersect with the zero...

  • Chart.YAxisScale
    ChartDirector Ver 4.1 (C++ Edition) Chart .YAxisScale Declaration static const int YAxisScale; Description A constant equals to 2 to represent that the size is measured using y-axis scale. This...

  • Chart.YAxisSymmetric
    ChartDirector Ver 4.1 (C++ Edition) Chart .YAxisSymmetric Declaration static const int YAxisSymmetric; Description A constant equals to 4 to represent that the y-axis should be symmetrical about the...

  • Chart.YAxisSymmetricIfNeeded
    ChartDirector Ver 4.1 (C++ Edition) Chart .YAxisSymmetricIfNeeded Declaration static const int YAxisSymmetricIfNeeded; Description A constant equals to 8 to represent that the y-axis should be...

  • Circular Label Layout
    ChartDirector Ver 4.1 (C++ Edition) Circular Label Layout    This example demonstrates various options in the "circular label layout" method. It also demonstrates the use of alternative...

  • Class Library
    ChartDirector Ver 4.1 (C++ Edition) Class Library This section describes the core ChartDirector classes. chartdir.h "chartdir" is the main header file for ChartDirector. All programs accessing the...

  • Multi-Color Bar Chart
    ChartDirector Ver 4.1 (C++ Edition) Multi-Color Bar Chart This example demonstrates creating a multi-color bar chart, in which each bar has a different color. It also demonstrates metallic background...

  • Multi-Color Gantt Chart
    ChartDirector Ver 4.1 (C++ Edition) Multi-Color Gantt Chart This example demonstrates a multi-color gantt chart with milestone symbols. The bars in this chart come from a multi-color box-whisker...

  • Coloring and Wallpaper
    ChartDirector Ver 4.1 (C++ Edition) Coloring and Wallpaper          This example demonstrates different coloring schemes and background effects. This example...

  • Color Specification
    ChartDirector Ver 4.1 (C++ Edition) Color Specification Many functions in the ChartDirector API accept colors as parameters. ChartDirector supports colors specified in web and HTML compatible ARGB...

  • Compact Line Chart
    ChartDirector Ver 4.1 (C++ Edition) Compact Line Chart This example extends the Simple Line Chart example by decorating the chart using a number of chart formatting features. In this example, random...

  • Concentric Donut Chart
    ChartDirector Ver 4.1 (C++ Edition) Concentric Donut Chart This example demonstrates creating concentric donut chart by merging two donuts of different radii. The chart in this example is created as...

  • Confidence Band
    ChartDirector Ver 4.1 (C++ Edition) Confidence Band This example demonstrates adding confidence bands to a trend line. It also demonstrates how to display linear regression parameters on the chart....

  • Controls
    ChartDirector Ver 4.1 (C++ Edition) Controls This section describes controls and libraries for displaying charts and handling user interactions. In this section CChartViewer (Windows edition only) An...

  • ChartDirector Ver 4.1 (C++ Edition)
      ChartDirector Version 4.1 C++ Edition Programmer's Manual if (!document.getElementById && !document.all) { var temp = ' ' + ' ' + 'This document is designed for Internet Explorer 5.0 or above,...

  • General Curve Fitting
    ChartDirector Ver 4.1 (C++ Edition) General Curve Fitting This example demonstrates the LOWESS general purpose curve fitting that is built into ChartDirector. In linear regression, the relationship...

  • Custom Symbols
    ChartDirector Ver 4.1 (C++ Edition) Custom Symbols This example demonstrates loading external image files as data symbols by using DataSet.setDataSymbol2 . Source Code Listing [The following code is...

  • Cylinder Bar Shape
    ChartDirector Ver 4.1 (C++ Edition) Cylinder Bar Shape This example demonstrates bars of cylinder shape. ChartDirector supports bars in cylindrical or arbitrary polygonal shapes. The shape are...

  • Cylinder Bar Shading
    ChartDirector Ver 4.1 (C++ Edition) Cylinder Bar Shading This example demonstrates using cylinder shading effect for bars and gradient color for plot area background. It also demonstrates putting...

  • DataSet
    ChartDirector Ver 4.1 (C++ Edition) DataSet The DataSet class represents data sets. DataSet objects are created by using Layer.addDataSet . Existing DataSet objects can be retrieved using...

  • DataSet.setDataColor
    ChartDirector Ver 4.1 (C++ Edition) DataSet .setDataColor Usage void setDataColor(int dataColor, int edgeColor = -1, int shadowColor = -1, int shadowEdgeColor = -1); Description Sets the colors used...

  • DataSet.setDataLabelFormat
    ChartDirector Ver 4.1 (C++ Edition) DataSet .setDataLabelFormat Usage void setDataLabelFormat(const char *formatString); Description Sets the data label format for the data set. To set the label...

  • DataSet.setDataLabelStyle
    ChartDirector Ver 4.1 (C++ Edition) DataSet .setDataLabelStyle Usage TextBox *setDataLabelStyle(const char *font = 0, double fontSize = 8, int fontColor = TextColor, double fontAngle = 0);...

  • DataSet.setDataName
    ChartDirector Ver 4.1 (C++ Edition) DataSet .setDataName Usage void setDataName(const char *name); Description Sets the name of the data set. The name will be used in the legend box, if one is...

  • DataSet.setDataSymbol
    ChartDirector Ver 4.1 (C++ Edition) DataSet .setDataSymbol Usage void setDataSymbol(int symbol, int size = 5, int fillColor = -1, int edgeColor = -1, int lineWidth = 1); Description Uses one of the...

  • DataSet.setDataSymbol2
    ChartDirector Ver 4.1 (C++ Edition) DataSet .setDataSymbol2 Usage void setDataSymbol(const char *image); Description Load an image from a file and use it as the graphics symbol to plot the data...

  • DataSet.setDataSymbol3
    ChartDirector Ver 4.1 (C++ Edition) DataSet .setDataSymbol3 Usage void setDataSymbol(const DrawArea *obj); Description Uses a DrawArea object as the graphics symbol to plot the data points. In the...

  • DataSet.setDataSymbol4
    ChartDirector Ver 4.1 (C++ Edition) DataSet .setDataSymbol4 Usage void setDataSymbol(IntArray polygon, int size = 11, int fillColor = -1, int edgeColor = -1); Description Uses a custom polygon as the...

  • DataSet.setLineWidth
    ChartDirector Ver 4.1 (C++ Edition) DataSet .setLineWidth Usage void setLineWidth(int w); Description Sets the line width of lines when drawing the data set. This method only applies to layers that...

  • DataSet.setUseYAxis
    ChartDirector Ver 4.1 (C++ Edition) DataSet .setUseYAxis Usage void setUseYAxis(const Axis* a); Description Determine the y-axis to use when drawing the data set. To set the y-axis to use for all...

  • DataSet.setUseYAxis2
    ChartDirector Ver 4.1 (C++ Edition) DataSet .setUseYAxis2 Usage void setUseYAxis2(bool b = true); Description Determine if the primary or secondary y-axis should be used when drawing the data set. To...

  • Data Types
    ChartDirector Ver 4.1 (C++ Edition) Data Types This section describes various data types and how they are represented in ChartDirector. In this section Color Specification Describes ChartDirector's...

  • Date/Time Specification
    ChartDirector Ver 4.1 (C++ Edition) Date/Time Specification Many functions in the ChartDirector API accept dates/times as parameters, in which the dates/times are represented as the seconds elapsed...

  • Depth Area Chart
    ChartDirector Ver 4.1 (C++ Edition) Depth Area Chart This example demonstrates using multiple area layers with semi-transparent colors to create a depth area chart. ChartDirector allows an XYChart to...

  • Depth Bar Chart
    ChartDirector Ver 4.1 (C++ Edition) Depth Bar Chart This example demonstrates using multiple bar layers with semi-transparent colors to create a depth bar chart. ChartDirector allows an XYChart to...

  • Discontinuous Lines
    ChartDirector Ver 4.1 (C++ Edition) Discontinuous Lines This example demonstrates using NoValue to represent lines with missing data points. It also demonstrates vertical zones and custom text boxes....

  • Donut Chart
    ChartDirector Ver 4.1 (C++ Edition) Donut Chart This example demonstrates a donut chart. It also demonstrates other chart effects, such as using CDML to nicely format sector labels, silver background...

  • Donut Width
    ChartDirector Ver 4.1 (C++ Edition) Donut Width             This example demonstrates the effects of different donut widths. Donut widths are configured by...

  • DoubleArray.DoubleArray
    ChartDirector Ver 4.1 (C++ Edition) DoubleArray .DoubleArray Usage DoubleArray(const double *data, int len); Description The constructor of the DoubleArray class. Arguments Argument Default...

  • DoubleArray
    ChartDirector Ver 4.1 (C++ Edition) DoubleArray The DoubleArray class represents arrays of double precision numbers. It encapsulates a pointer to a C array and the size of the array in a single...

  • DrawArea.affineTransform
    ChartDirector Ver 4.1 (C++ Edition) DrawArea .affineTransform Usage void affineTransform(double a, double b, double c, double d, double e, double f, int bgColor = 0xffffff, int filter = LinearFilter,...

  • DrawArea.arc
    ChartDirector Ver 4.1 (C++ Edition) DrawArea .arc Usage void arc(int cx, int cy, int rx, int ry, double a1, double a2, int c); Description Draws a circular or elliptical arc. Arguments Argument...

  • DrawArea.circle
    ChartDirector Ver 4.1 (C++ Edition) DrawArea .circle Usage void circle(int cx, int cy, int rx, int ry, int edgeColor, int fillColor); Description Draws a circle or an ellipse. Arguments Argument...

  • DrawArea.clone
    ChartDirector Ver 4.1 (C++ Edition) DrawArea .clone Usage void clone(DrawArea *d, int x, int y, int align, int newWidth = -1, int newHeight = -1, int filter = LinearFilter, double blur = 1) const;...

  • DrawArea.cylinder
    ChartDirector Ver 4.1 (C++ Edition) DrawArea .cylinder Usage void cylinder(int cx, int cy, int rx, int ry, double a1, double a2, int depthX, int depthY, int edgeColor, int fillColor); Description...

  • DrawArea.dashLineColor
    ChartDirector Ver 4.1 (C++ Edition) DrawArea .dashLineColor Usage int dashLineColor(int color, int patternCode = DashLine); Description Creates a dash line color. A dash line color is a dynamic color...

  • DrawArea.DrawArea
    ChartDirector Ver 4.1 (C++ Edition) DrawArea .DrawArea Usage DrawArea(); Description Creates a DrawArea object. Arguments None Return Value The DrawArea object created. © 2006 Advanced Software...

  • DrawArea.fill
    ChartDirector Ver 4.1 (C++ Edition) DrawArea .fill Usage void fill(int x, int y, int color); Description Flood fill a region using the specified color. Arguments Argument Default Description x...

  • DrawArea.fill2
    ChartDirector Ver 4.1 (C++ Edition) DrawArea .fill2 Usage void fill(int x, int y, int color, int borderColor); Description Fill a region using the specified color, where the region is bounded by a...

  • DrawArea.getARGBColor
    ChartDirector Ver 4.1 (C++ Edition) DrawArea .getARGBColor Usage int getARGBColor(int c); Description Obtain the ARGB color given a palette color. If the given color is already in ARGB format, the...

  • DrawArea.getHeight
    ChartDirector Ver 4.1 (C++ Edition) DrawArea .getHeight Usage int getHeight() const; Description Gets the height of the drawing surface. Arguments None Return Value The height of the drawing surface...

  • DrawArea.getPixel
    ChartDirector Ver 4.1 (C++ Edition) DrawArea .getPixel Usage int getPixel(int x, int y) const; Description Gets the color of a pixel. Arguments Argument Default Description x (Mandatory) The x...

  • DrawArea.getWidth
    ChartDirector Ver 4.1 (C++ Edition) DrawArea .getWidth Usage int getWidth() const; Description Gets the width of the drawing surface. Arguments None Return Value The width of the drawing surface in...

  • DrawArea.gradientColor
    ChartDirector Ver 4.1 (C++ Edition) DrawArea .gradientColor Usage int gradientColor(int startX, int startY, int endX, int endY, int startColor, int endColor); Description Creates a two-point linear...

  • DrawArea.gradientColor2
    ChartDirector Ver 4.1 (C++ Edition) DrawArea .gradientColor2 Usage int gradientColor(IntArray colorArray, double angle = 90, double scale = 1.0, int startX = 0, int startY = 0); Description Creates a...

  • DrawArea.halfColor
    ChartDirector Ver 4.1 (C++ Edition) DrawArea .halfColor Usage int halfColor(int c); Description Creates a color that is half the intensity of the given color. Arguments Argument Default Description c...

  • DrawArea.hCylinderTransform
    ChartDirector Ver 4.1 (C++ Edition) DrawArea .hCylinderTransform Usage void hCylinderTransform(int yDiameter, int bgColor = 0xffffff, int filter = LinearFilter, double blur = 1); Description Wraps...

  • DrawArea.hFlip
    ChartDirector Ver 4.1 (C++ Edition) DrawArea .hFlip Usage void hFlip(); Description Flip the drawing surface along the central horizontal line. Arguments None Return Value None © 2006 Advanced...

  • DrawArea.hline
    ChartDirector Ver 4.1 (C++ Edition) DrawArea .hline Usage void hline(int x1, int x2, int y, int c); Description Draws a horizontal line. Arguments Argument Default Description x1 (Mandatory) The x...

  • DrawArea
    ChartDirector Ver 4.1 (C++ Edition) DrawArea The DrawArea class represents drawing surfaces, with methods for performing graphics primitives (such as drawing lines, shapes and texts) and the...

  • DrawArea.hTriangleTransform
    ChartDirector Ver 4.1 (C++ Edition) DrawArea .hTriangleTransform Usage void hTriangleTransform(int tWidth = -1, int bgColor = 0xffffff, int filter = LinearFilter, double blur = 1); Description Wraps...

  • DrawArea.line
    ChartDirector Ver 4.1 (C++ Edition) DrawArea .line Usage void line(double x1, double y1, double x2, double y2, int c, int lineWidth = 1); Description Draw a straight line. Arguments Argument Default...

  • DrawArea.linearGradientColor
    ChartDirector Ver 4.1 (C++ Edition) DrawArea .linearGradientColor Usage int linearGradientColor(int startX, int startY, int endX, int endY, int startColor, int endColor, bool periodic = false);...

  • DrawArea.linearGradientColor2
    ChartDirector Ver 4.1 (C++ Edition) DrawArea .linearGradientColor2 Usage int linearGradientColor(int startX, int startY, int endX, int endY, IntArray colorArray, bool periodic = false); Description...

  • DrawArea.load
    ChartDirector Ver 4.1 (C++ Edition) DrawArea .load Usage bool load(const char *filename); Description Load an image file into the current DrawArea. This method will overwrite the current DrawArea....

  • DrawArea.loadGIF
    ChartDirector Ver 4.1 (C++ Edition) DrawArea .loadGIF Usage bool loadGIF(const char *filename); Description Load a GIF image into the current DrawArea. This method will overwrite the current...

  • DrawArea.loadJPG
    ChartDirector Ver 4.1 (C++ Edition) DrawArea .loadJPG Usage bool loadJPG(const char *filename); Description Load a JPG image into the current DrawArea. This method will overwrite the current...

  • DrawArea.loadPNG
    ChartDirector Ver 4.1 (C++ Edition) DrawArea .loadPNG Usage bool loadPNG(const char *filename); Description Load a PNG image into the current DrawArea. This method will overwrite the current...

  • DrawArea.loadWMP
    ChartDirector Ver 4.1 (C++ Edition) DrawArea .loadWMP Usage bool loadWMP(const char *filename); Description Load a WAP bitmap image into the current DrawArea. This method will overwrite the current...

  • DrawArea.merge
    ChartDirector Ver 4.1 (C++ Edition) DrawArea .merge Usage void merge(const DrawArea *d, int x, int y, int align, int transparency); Description Copy another DrawArea to the current DrawArea....

  • DrawArea.move
    ChartDirector Ver 4.1 (C++ Edition) DrawArea .move Usage void move(double xOffset, double yOffset, int bgColor = 0xffffff, int filter = LinearFilter, double blur = 1); Description Moves the drawing...

  • DrawArea.out
    ChartDirector Ver 4.1 (C++ Edition) DrawArea .out Usage bool out(const char *filename); Description Writes the DrawArea to an image file. The file format is determined based on file extension, which...

  • DrawArea.outBMP
    ChartDirector Ver 4.1 (C++ Edition) DrawArea .outBMP Usage bool outBMP(const char *filename); Description Writes the DrawArea to a BMP image file. Arguments Argument Default Description filename...

  • DrawArea.outBMP2
    ChartDirector Ver 4.1 (C++ Edition) DrawArea .outBMP2 Usage MemBlock outBMP(); Description Writes the DrawArea as a BMP image to memory. Arguments None Return Value A memory block containing the BMP...

  • DrawArea.outGIF
    ChartDirector Ver 4.1 (C++ Edition) DrawArea .outGIF Usage bool outGIF(const char *filename); Description Writes the DrawArea to a GIF image file. Arguments Argument Default Description filename...

  • DrawArea.outGIF2
    ChartDirector Ver 4.1 (C++ Edition) DrawArea .outGIF2 Usage MemBlock outGIF(); Description Writes the DrawArea as a GIF image to memory. Arguments None Return Value A memory block containing the GIF...

  • DrawArea.outJPG
    ChartDirector Ver 4.1 (C++ Edition) DrawArea .outJPG Usage bool outJPG(const char *filename, int quality = 80); Description Writes the DrawArea to a JPEG image file. Arguments Argument Default...

  • DrawArea.outJPG2
    ChartDirector Ver 4.1 (C++ Edition) DrawArea .outJPG2 Usage MemBlock outJPG(int quality = 80); Description Writes the DrawArea as a JPEG image to memory. Arguments Argument Default Description...

  • DrawArea.outPNG
    ChartDirector Ver 4.1 (C++ Edition) DrawArea .outPNG Usage bool outPNG(const char *filename); Description Writes the DrawArea to a PNG image file. Arguments Argument Default Description filename...

  • DrawArea.outPNG2
    ChartDirector Ver 4.1 (C++ Edition) DrawArea .outPNG2 Usage MemBlock outPNG(); Description Writes the DrawArea as a PNG image to memory. Arguments None Return Value A memory block containing the PNG...

  • DrawArea.outWMP
    ChartDirector Ver 4.1 (C++ Edition) DrawArea .outWMP Usage bool outWMP(const char *filename); Description Writes the DrawArea to a WAP bitmap image file. Arguments Argument Default Description...

  • DrawArea.outWMP2
    ChartDirector Ver 4.1 (C++ Edition) DrawArea .outWMP2 Usage MemBlock outWMP(); Description Writes the DrawArea as a WAP bitmap image to memory. Arguments None Return Value A memory block containing...

  • DrawArea.patternColor
    ChartDirector Ver 4.1 (C++ Edition) DrawArea .patternColor Usage int patternColor(IntArray colorArray, int height, int startX = 0, int startY = 0); Description Creates a pattern color using an array...

  • DrawArea.patternColor2
    ChartDirector Ver 4.1 (C++ Edition) DrawArea .patternColor2 Usage int patternColor(const char *filename, int startX = 0, int startY = 0); Description Creates a pattern color by loading the pattern...

  • DrawArea.pixel
    ChartDirector Ver 4.1 (C++ Edition) DrawArea .pixel Usage void pixel(int x, int y, int c); Description Draw a pixel. Arguments Argument Default Description x (Mandatory) The x coordinate of the...

  • DrawArea.polygon
    ChartDirector Ver 4.1 (C++ Edition) DrawArea .polygon Usage void polygon(IntArray x, IntArray y, int edgeColor, int fillColor); Description Draws a polygon. Arguments Argument Default Description x...

  • DrawArea.radialGradientColor
    ChartDirector Ver 4.1 (C++ Edition) DrawArea .radialGradientColor Usage int radialGradientColor(int cx, int cy, int rx, int ry, int startColor, int endColor, bool periodic = false); Description...

  • DrawArea.radialGradientColor2
    ChartDirector Ver 4.1 (C++ Edition) DrawArea .radialGradientColor2 Usage int radialGradientColor(int cx, int cy, int rx, int ry, IntArray colorArray, bool periodic = false); Description Creates a...

  • DrawArea.rAffineTransform
    ChartDirector Ver 4.1 (C++ Edition) DrawArea .rAffineTransform Usage void rAffineTransform(double a, double b, double c, double d, double e, double f, int bgColor = 0xffffff, int filter =...

  • DrawArea.rect
    ChartDirector Ver 4.1 (C++ Edition) DrawArea .rect Usage void rect(int x1, int y1, int x2, int y2, int edgeColor, int fillColor, int raisedEffect = 0); Description Draws a rectangle. Arguments...

  • DrawArea.reduceColors
    ChartDirector Ver 4.1 (C++ Edition) DrawArea .reduceColors Usage int reduceColors(int colorCount, bool blackAndWhite = false); Description Reduces the number of colors in the image. The colors in the...

  • DrawArea.resize
    ChartDirector Ver 4.1 (C++ Edition) DrawArea .resize Usage void resize(int newWidth, int newHeight, int filter = LinearFilter, double blur = 1); Description Resize the drawing surface. Arguments...

  • DrawArea.rotate
    ChartDirector Ver 4.1 (C++ Edition) DrawArea .rotate Usage void rotate(double angle, int bgColor = 0xffffff, double cx = -1, double cy = -1, int filter = LinearFilter, double blur = 1); Description...

  • DrawArea.sector
    ChartDirector Ver 4.1 (C++ Edition) DrawArea .sector Usage void sector(int cx, int cy, int rx, int ry, double a1, double a2, int edgeColor, int fillColor); Description Draws a circular or elliptical...

  • DrawArea.setAntiAlias
    ChartDirector Ver 4.1 (C++ Edition) DrawArea .setAntiAlias Usage void setAntiAlias(bool shapeAntiAlias = true, int textAntiAlias = AutoAntiAlias); Description Controls whether anti-alias is used when...

  • DrawArea.setBgColor
    ChartDirector Ver 4.1 (C++ Edition) DrawArea .setBgColor Usage void setBgColor(int c); Description Sets the background color of the image. Arguments Argument Default Description c (Mandatory) The...

  • DrawArea.setClipRect
    ChartDirector Ver 4.1 (C++ Edition) DrawArea .setClipRect Usage void setClipRect(int left, int top, int right, int bottom); Description Sets the clip rectangle. When performing graphics operation,...

  • DrawArea.setColorTable
    ChartDirector Ver 4.1 (C++ Edition) DrawArea .setColorTable Usage void setColorTable(IntArray colors, int offset); Description Change the colors in the palette starting with the specified offset...

  • DrawArea.setDefaultFonts
    ChartDirector Ver 4.1 (C++ Edition) DrawArea .setDefaultFonts Usage void setDefaultFonts(const char *normal, const char *bold = 0, const char *italic = 0, const char *boldItalic = 0); Description...

  • DrawArea.setDitherMethod
    ChartDirector Ver 4.1 (C++ Edition) DrawArea .setDitherMethod Usage void setDitherMethod(int m); Description Sets the dithering method in case dithering is necessary. Dithering is a process of...

  • DrawArea.setFontTable
    ChartDirector Ver 4.1 (C++ Edition) DrawArea .setFontTable Usage void setFontTable(int index, const char *font); Description Sets an entry in the font table to the specified font name. The first 4...

  • DrawArea.setInterlace
    ChartDirector Ver 4.1 (C++ Edition) DrawArea .setInterlace Usage void setInterlace(bool i); Description Sets the interlace mode when creating the image. Note that in many case an interlaced image is...

  • DrawArea.setPaletteMode
    ChartDirector Ver 4.1 (C++ Edition) DrawArea .setPaletteMode Usage void setPaletteMode(int p); Description Sets the palette mode to use when writing the image in PNG format. The PNG format supports...

  • DrawArea.setSearchPath
    ChartDirector Ver 4.1 (C++ Edition) DrawArea .setSearchPath Usage void setSearchPath(const char *path); Description Sets the file system search path for loading image files. Several ChartDirector...

  • DrawArea.setSize
    ChartDirector Ver 4.1 (C++ Edition) DrawArea .setSize Usage void setSize(int width, int height, int bgColor = 0xffffff); Description Sets the size and background color of the drawing surface....

  • DrawArea.setTransparentColor
    ChartDirector Ver 4.1 (C++ Edition) DrawArea .setTransparentColor Usage void setTransparentColor(int c); Description Specifies a certain color to mean transparent when creating the image output, or...

  • DrawArea.shearTransform
    ChartDirector Ver 4.1 (C++ Edition) DrawArea .shearTransform Usage void shearTransform(double xShear, double yShear = 0, int bgColor = 0xffffff, int filter = LinearFilter, double blur = 1);...

  • DrawArea.sphereTransform
    ChartDirector Ver 4.1 (C++ Edition) DrawArea .sphereTransform Usage void sphereTransform(int xDiameter, int yDiameter, int bgColor = 0xffffff, int filter = LinearFilter, double blur = 1); Description...

  • DrawArea.surface
    ChartDirector Ver 4.1 (C++ Edition) DrawArea .surface Usage void surface(double x1, double y1, double x2, double y2, int depthX, int depthY, int edgeColor, int fillColor); Description Draws a...

  • DrawArea.text
    ChartDirector Ver 4.1 (C++ Edition) DrawArea .text Usage void text(const char *str, const char *font, double fontSize, int x, int y, int color); Description Draws text. This method is a simplified...

  • DrawArea.text2
    ChartDirector Ver 4.1 (C++ Edition) DrawArea .text2 Usage void text(const char *str, const char *font, int fontIndex, double fontHeight, double fontWidth, double angle, bool vertical, int x, int y,...

  • DrawArea.text3
    ChartDirector Ver 4.1 (C++ Edition) DrawArea .text3 Usage TTFText* text(const char *str, const char *font, double fontSize); Description Creates a TTFText object representing a text block. This...

  • DrawArea.text4
    ChartDirector Ver 4.1 (C++ Edition) DrawArea .text4 Usage TTFText* text(const char *text, const char *font, int fontIndex, double fontHeight, double fontWidth, double angle, bool vertical);...

  • DrawArea.tile
    ChartDirector Ver 4.1 (C++ Edition) DrawArea .tile Usage void tile(const DrawArea *d, int transparency); Description Copy another DrawArea to the current DrawArea as a wallpaper. The wallpaper image...

  • DrawArea.vCylinderTransform
    ChartDirector Ver 4.1 (C++ Edition) DrawArea .vCylinderTransform Usage void vCylinderTransform(int xDiameter, int bgColor = 0xffffff, int filter = LinearFilter, double blur = 1); Description Wraps...

  • DrawArea.vFlip
    ChartDirector Ver 4.1 (C++ Edition) DrawArea .vFlip Usage void vFlip(); Description Flip the drawing surface along the central vertical line. Arguments None Return Value None © 2006 Advanced Software...

  • DrawArea.vline
    ChartDirector Ver 4.1 (C++ Edition) DrawArea .vline Usage void vline(int y1, int y2, int x, int c); Description Draws a vertical line. Arguments Argument Default Description y1 (Mandatory) The y...

  • DrawArea.vTriangleTransform
    ChartDirector Ver 4.1 (C++ Edition) DrawArea .vTriangleTransform Usage void vTriangleTransform(int tHeight = -1, int bgColor = 0xffffff, int filter = LinearFilter, double blur = 1); Description Wraps...

  • DrawArea.waveTransform
    ChartDirector Ver 4.1 (C++ Edition) DrawArea .waveTransform Usage void waveTransform(int period, double amplitude, double direction = 0, double startAngle = 0, bool longitudinal = false, int bgColor...

  • Dual Horizontal Bar Charts
    ChartDirector Ver 4.1 (C++ Edition) Dual Horizontal Bar Charts This example demonstrates combining two horizontal bar charts of opposite direction using a MultiChart , and a number of other...

  • Dual X-Axis
    ChartDirector Ver 4.1 (C++ Edition) Dual X-Axis This example demonstrates a chart with two x-axes and two y-axes. ChartDirector supports arbitrary number of axes. The first two x and y axes are most...

  • Dual Y-Axis
    ChartDirector Ver 4.1 (C++ Edition) Dual Y-Axis This example demonstrates a chart with two independent y-axis. ChartDirector supports arbitrary number of axes. The first two x and y axes are most...

  • Enhanced Area Chart
    ChartDirector Ver 4.1 (C++ Edition) Enhanced Area Chart This example extends the Simple Area Chart example by decorating the chart using a number of chart formatting features. Create an XYChart...

  • Line with Error Symbols
    ChartDirector Ver 4.1 (C++ Edition) Line with Error Symbols This example demonstrates combining a line layer with a box-whisker layer to draw a line with error symbols. The blue line and the yellow...

  • Finance Chart (1)
    ChartDirector Ver 4.1 (C++ Edition) Finance Chart (1) This example demonstrate creating a full-featured finance chart, with HLOC, moving averages, Bollinger band, volume bars, RSI and Momentum...

  • Finance Chart (2)
    ChartDirector Ver 4.1 (C++ Edition) Finance Chart (2) This example demonstrate creating a full-featured finance chart, with candlesticks, moving averages, Donchian channel, volume bars, MACD and...

  • FinanceChart.addAccDist
    ChartDirector Ver 4.1 (C++ Edition) FinanceChart .addAccDist Usage XYChart *addAccDist(int height, int color); Description Adds an Accumulation/Distribution indicator chart. Arguments Argument...

  • FinanceChart.addADX
    ChartDirector Ver 4.1 (C++ Edition) FinanceChart .addADX Usage XYChart *addADX(int height, int period, int posColor, int negColor, int color); Description Adds an Average Directional Index indicators...

  • FinanceChart.addAroon
    ChartDirector Ver 4.1 (C++ Edition) FinanceChart .addAroon Usage XYChart *addAroon(int height, int period, int upColor, int downColor); Description Adds an Aroon Up/Down indicators chart. Arguments...

  • FinanceChart.addAroonOsc
    ChartDirector Ver 4.1 (C++ Edition) FinanceChart .addAroonOsc Usage XYChart *addAroonOsc(int height, int period, int color); Description Adds an Aroon Oscillator indicator chart. Arguments Argument...

  • FinanceChart.addATR
    ChartDirector Ver 4.1 (C++ Edition) FinanceChart .addATR Usage XYChart *addATR(int height, int period, int color1, int color2); Description Adds an Average True Range indicators chart. Arguments...

  • FinanceChart.addBand
    ChartDirector Ver 4.1 (C++ Edition) FinanceChart .addBand Usage InterLineLayer *addBand(DoubleArray upperLine, DoubleArray lowerLine, int lineColor, int fillColor, string name); Description Adds a...

  • FinanceChart.addBarIndicator
    ChartDirector Ver 4.1 (C++ Edition) FinanceChart .addBarIndicator Usage XYChart *addBarIndicator(int height, DoubleArray data, int color, const char *name); Description Adds a generic bar indicator...

  • FinanceChart.addBarIndicator2
    ChartDirector Ver 4.1 (C++ Edition) FinanceChart .addBarIndicator2 Usage BarLayer *addBarIndicator2(XYChart *c, DoubleArray data, int color, const char *name); Description Adds a bar layer to an...

  • FinanceChart.addBollingerBand
    ChartDirector Ver 4.1 (C++ Edition) FinanceChart .addBollingerBand Usage InterLineLayer *addBollingerBand(int period, double bandWidth, int lineColor, int fillColor); Description Adds a Bollinger...

  • FinanceChart.addBollingerWidth
    ChartDirector Ver 4.1 (C++ Edition) FinanceChart .addBollingerWidth Usage XYChart *addBollingerWidth(int height, int period, double width, int color); Description Adds a Bollinger Band Width...

  • FinanceChart.addCandleStick
    ChartDirector Ver 4.1 (C++ Edition) FinanceChart .addCandleStick Usage CandleStickLayer *addCandleStick(int upColor, int downColor); Description Adds a candlestick layer to the main chart. Arguments...

  • FinanceChart.addCCI
    ChartDirector Ver 4.1 (C++ Edition) FinanceChart .addCCI Usage XYChart *addCCI(int height, int period, int color, double range, int upColor, int downColor); Description Adds a Community Channel Index...

  • FinanceChart.addChaikinMoneyFlow
    ChartDirector Ver 4.1 (C++ Edition) FinanceChart .addChaikinMoneyFlow Usage XYChart *addChaikinMoneyFlow(int height, int period, int color); Description Adds a Chaikin Money Flow indicator chart....

  • FinanceChart.addChaikinOscillator
    ChartDirector Ver 4.1 (C++ Edition) FinanceChart .addChaikinOscillator Usage XYChart *addChaikinOscillator(int height, int color); Description Adds a Chaikin Oscillator indicator chart. Arguments...

  • FinanceChart.addChaikinVolatility
    ChartDirector Ver 4.1 (C++ Edition) FinanceChart .addChaikinVolatility Usage XYChart *addChaikinVolatility(int height, int period1, int period2, int color); Description Adds a Chaikin Volatility...

  • FinanceChart.addCloseLine
    ChartDirector Ver 4.1 (C++ Edition) FinanceChart .addCloseLine Usage LineLayer *addCloseLine(int color); Description Adds a closing price line on the main chart. Arguments Argument Default...

  • FinanceChart.addCLV
    ChartDirector Ver 4.1 (C++ Edition) FinanceChart .addCLV Usage XYChart *addCLV(int height, int color); Description Adds a Close Location Value indicator chart. Arguments Argument Default Description...

  • FinanceChart.addDonchianChannel
    ChartDirector Ver 4.1 (C++ Edition) FinanceChart .addDonchianChannel Usage InterLineLayer *addDonchianChannel(int period, int lineColor, int fillColor); Description Adds a Donchian channel on the...

  • FinanceChart.addDonchianWidth
    ChartDirector Ver 4.1 (C++ Edition) FinanceChart .addDonchianWidth Usage XYChart *addDonchianWidth(int height, int period, int color); Description Adds a Donchian Channel Width indicator chart....

  • FinanceChart.addDPO
    ChartDirector Ver 4.1 (C++ Edition) FinanceChart .addDPO Usage XYChart *addDPO(int height, int period, int color); Description Adds a Detrended Price Oscillator indicator chart. Arguments Argument...

  • FinanceChart.addEaseOfMovement
    ChartDirector Ver 4.1 (C++ Edition) FinanceChart .addEaseOfMovement Usage XYChart *addEaseOfMovement(int height, int period, int color1, int color2); Description Adds a Ease of Movement indicator...

  • FinanceChart.addEnvelop
    ChartDirector Ver 4.1 (C++ Edition) FinanceChart .addEnvelop Usage InterLineLayer *addEnvelop(int period, double range, int lineColor, int fillColor); Description Adds a price envelop on the main...

  • FinanceChart.addExpMovingAvg
    ChartDirector Ver 4.1 (C++ Edition) FinanceChart .addExpMovingAvg Usage LineLayer *addExpMovingAvg(int period, int color); Description Adds an exponential moving average line on the main chart....

  • FinanceChart.addFastStochastic
    ChartDirector Ver 4.1 (C++ Edition) FinanceChart .addFastStochastic Usage XYChart *addFastStochastic(int height, int period1, int period2, int color1, int color2); Description Adds a Fast Stochastic...

  • FinanceChart.addHLOC
    ChartDirector Ver 4.1 (C++ Edition) FinanceChart .addHLOC Usage HLOCLayer *addHLOC(int upColor, int downColor); Description Adds a HLOC layer to the main chart. Arguments Argument Default Description...

  • FinanceChart.addIndicator
    ChartDirector Ver 4.1 (C++ Edition) FinanceChart .addIndicator Usage XYChart *addIndicator(int height); Description Adds a blank indicator chart to the finance chart. Used internally to add other...

  • FinanceChart.addLineIndicator
    ChartDirector Ver 4.1 (C++ Edition) FinanceChart .addLineIndicator Usage XYChart *addLineIndicator(int height, DoubleArray data, int color, const char *name); Description Adds a generic line...

  • FinanceChart.addLineIndicator2
    ChartDirector Ver 4.1 (C++ Edition) FinanceChart .addLineIndicator2 Usage LineLayer *addLineIndicator2(XYChart *c, DoubleArray data, int color, const char *name); Description Adds a line to an...

  • FinanceChart.addMACD
    ChartDirector Ver 4.1 (C++ Edition) FinanceChart .addMACD Usage XYChart *addMACD(int height, int period1, int period2, int period3, int color, int signalColor, int divColor); Description Adds a MACD...

  • FinanceChart.addMainChart
    ChartDirector Ver 4.1 (C++ Edition) FinanceChart .addMainChart Usage XYChart *addMainChart(int height); Description Adds the main chart - the chart that shows the data for the prices. The chart added...

  • FinanceChart.addMassIndex
    ChartDirector Ver 4.1 (C++ Edition) FinanceChart .addMassIndex Usage XYChart *addMassIndex(int height, int color, int upColor, int downColor); Description Adds a Mass Index indicator chart. Arguments...

  • FinanceChart.addMedianPrice
    ChartDirector Ver 4.1 (C++ Edition) FinanceChart .addMedianPrice Usage LineLayer *addMedianPrice(int color); Description Adds a median price line on the main chart. Arguments Argument Default...

  • FinanceChart.addMFI
    ChartDirector Ver 4.1 (C++ Edition) FinanceChart .addMFI Usage XYChart *addMFI(int height, int period, int color, double range, int upColor, int downColor); Description Adds a Money Flow Index...

  • FinanceChart.addMomentum
    ChartDirector Ver 4.1 (C++ Edition) FinanceChart .addMomentum Usage XYChart *addMomentum(int height, int period, int color); Description Adds a Momentum indicator chart. Arguments Argument Default...

  • FinanceChart.addNVI
    ChartDirector Ver 4.1 (C++ Edition) FinanceChart .addNVI Usage XYChart *addNVI(int height, int period, int color, int signalColor); Description Adds a Negative Volume Index indicator chart. Arguments...

  • FinanceChart.addOBV
    ChartDirector Ver 4.1 (C++ Edition) FinanceChart .addOBV Usage XYChart *addOBV(int height, int color); Description Adds an On Balance Volume indicator chart. Arguments Argument Default Description...

  • FinanceChart.addPerformance
    ChartDirector Ver 4.1 (C++ Edition) FinanceChart .addPerformance Usage XYChart *addPerformance(int height, int color); Description Adds a Performance indicator chart. Arguments Argument Default...

  • FinanceChart.addPlotAreaTitle
    ChartDirector Ver 4.1 (C++ Edition) FinanceChart .addPlotAreaTitle Usage TextBox *addPlotAreaTitle(int alignment, const char *text); Description Adds a text title above the plot area. You may add...

  • FinanceChart.addPPO
    ChartDirector Ver 4.1 (C++ Edition) FinanceChart .addPPO Usage XYChart *addPPO(int height, int period1, int period2, int period3, int color, int signalColor, int divColor); Description Adds a...

  • FinanceChart.addPVI
    ChartDirector Ver 4.1 (C++ Edition) FinanceChart .addPVI Usage XYChart *addPVI(int height, int period, int color, int signalColor); Description Adds a Positive Volume Index indicator chart. Arguments...

  • FinanceChart.addPVO
    ChartDirector Ver 4.1 (C++ Edition) FinanceChart .addPVO Usage XYChart *addPVO(int height, int period1, int period2, int period3, int color, int signalColor, int divColor); Description Adds a...

  • FinanceChart.addPVT
    ChartDirector Ver 4.1 (C++ Edition) FinanceChart .addPVT Usage XYChart *addPVT(int height, int color); Description Adds a Price Volume Trend indicator chart. Arguments Argument Default Description...

  • FinanceChart.addROC
    ChartDirector Ver 4.1 (C++ Edition) FinanceChart .addROC Usage XYChart *addROC(int height, int period, int color); Description Adds a Rate of Change indicator chart. Arguments Argument Default...

  • FinanceChart.addRSI
    ChartDirector Ver 4.1 (C++ Edition) FinanceChart .addRSI Usage XYChart *addRSI(int height, int period, int color, double range, int upColor, int downColor); Description Adds a Relative Strength Index...

  • FinanceChart.addSimpleMovingAvg
    ChartDirector Ver 4.1 (C++ Edition) FinanceChart .addSimpleMovingAvg Usage LineLayer *addSimpleMovingAvg(int period, int color); Description Adds a simple moving average line on the main chart....

  • FinanceChart.addSlowStochastic
    ChartDirector Ver 4.1 (C++ Edition) FinanceChart .addSlowStochastic Usage XYChart *addSlowStochastic(int height, int period1, int period2, int color1, int color2); Description Adds a Slow Stochastic...

  • FinanceChart.addStdDev
    ChartDirector Ver 4.1 (C++ Edition) FinanceChart .addStdDev Usage XYChart *addStdDev(int height, int period, int color); Description Adds a Moving Standard Deviation indicator chart. Arguments...

  • FinanceChart.addStochRSI
    ChartDirector Ver 4.1 (C++ Edition) FinanceChart .addStochRSI Usage XYChart *addStochRSI(int height, int period, int color, double range, int upColor, int downColor); Description Adds a Stochastic...

  • FinanceChart.addThreshold
    ChartDirector Ver 4.1 (C++ Edition) FinanceChart .addThreshold Usage void addThreshold(XYChart *c, LineLayer *layer, double topRange, int topColor, double bottomRange, int bottomColor); Description...

  • FinanceChart.addTriMovingAvg
    ChartDirector Ver 4.1 (C++ Edition) FinanceChart .addTriMovingAvg Usage LineLayer *addTriMovingAvg(int period, int color); Description Adds a triangular moving average line on the main chart....

  • FinanceChart.addTRIX
    ChartDirector Ver 4.1 (C++ Edition) FinanceChart .addTRIX Usage XYChart *addTRIX(int height, int period, int color); Description Adds a TRIX indicator chart. Arguments Argument Default Description...

  • FinanceChart.addTypicalPrice
    ChartDirector Ver 4.1 (C++ Edition) FinanceChart .addTypicalPrice Usage LineLayer *addTypicalPrice(int color); Description Adds a typical price line on the main chart. Arguments Argument Default...

  • FinanceChart.addUltimateOscillator
    ChartDirector Ver 4.1 (C++ Edition) FinanceChart .addUltimateOscillator Usage XYChart *addUltimateOscillator(int height, int period1, int period2, int period3, int color, double range, int upColor,...

  • FinanceChart.addVolBars
    ChartDirector Ver 4.1 (C++ Edition) FinanceChart .addVolBars Usage BarLayer *addVolBars(int height, int upColor, int downColor, int flatColor); Description Adds a volume bar chart layer on the main...

  • FinanceChart.addVolIndicator
    ChartDirector Ver 4.1 (C++ Edition) FinanceChart .addVolIndicator Usage XYChart *addVolIndicator(int height, int upColor, int downColor, int flatColor); Description Adds a Volume indicator chart....

  • FinanceChart.addWeightedClose
    ChartDirector Ver 4.1 (C++ Edition) FinanceChart .addWeightedClose Usage LineLayer *addWeightedClose(int color); Description Adds a weighted close line on the main chart. Arguments Argument Default...

  • FinanceChart.addWeightedMovingAvg
    ChartDirector Ver 4.1 (C++ Edition) FinanceChart .addWeightedMovingAvg Usage LineLayer *addWeightedMovingAvg(int period, int color); Description Adds a weighted moving average line on the main chart....

  • FinanceChart.addWilliamR
    ChartDirector Ver 4.1 (C++ Edition) FinanceChart .addWilliamR Usage XYChart *addWilliamR(int height, int period, int color, double range, int upColor, int downColor); Description Adds a William %R...

  • FinanceChart.enableAntiAlias
    ChartDirector Ver 4.1 (C++ Edition) FinanceChart .enableAntiAlias Usage void enableAntiAlias(bool antiAlias); Description Enables/Disables anti-alias. Enabling anti-alias makes the line smoother....

  • FinanceChart.FinanceChart
    ChartDirector Ver 4.1 (C++ Edition) FinanceChart .FinanceChart Usage FinanceChart(int width); Description Creates a new FinanceChart object. Arguments Argument Default Description width (Mandatory)...

  • FinanceChart.getToolTipDateFormat
    ChartDirector Ver 4.1 (C++ Edition) FinanceChart .getToolTipDateFormat Usage const char *getToolTipDateFormat(); Description Gets the date/time format string to use for tool tips. The format string...

  • FinanceChart
    ChartDirector Ver 4.1 (C++ Edition) FinanceChart FinanceChart is a financial charting library built on top of the main ChartDirector library. It extends MultiChart by implementing many financial...

  • FinanceChart.setAxisOnRight
    ChartDirector Ver 4.1 (C++ Edition) FinanceChart .setAxisOnRight Usage void setAxisOnRight(bool b); Description Sets whether the main y-axis is on right of left side of the plot area. The default is...

  • FinanceChart.setData
    ChartDirector Ver 4.1 (C++ Edition) FinanceChart .setData Usage void setData(DoubleArray timeStamps, DoubleArray highData, DoubleArray lowData, DoubleArray openData, DoubleArray closeData,...

  • FinanceChart.setDateLabelFormat
    ChartDirector Ver 4.1 (C++ Edition) FinanceChart .setDateLabelFormat Usage void setDateLabelFormat(const char *yearFormat, const char *firstMonthFormat, const char *otherMonthFormat, const char...

  • FinanceChart.setDateLabelSpacing
    ChartDirector Ver 4.1 (C++ Edition) FinanceChart .setDateLabelSpacing Usage void setDateLabelSpacing(int labelSpacing); Description Sets the minimum label spacing between two labels on the time axis....

  • FinanceChart.setLegendStyle
    ChartDirector Ver 4.1 (C++ Edition) FinanceChart .setLegendStyle Usage void setLegendStyle(const char *font, double fontSize, int fontColor, int bgColor); Description Sets legend style. The default...

  • FinanceChart.setLogScale
    ChartDirector Ver 4.1 (C++ Edition) FinanceChart .setLogScale Usage void setLogScale(bool b); Description Determines if log scale should be used for the main chart. The default is to use linear...

  • FinanceChart.setMargins
    ChartDirector Ver 4.1 (C++ Edition) FinanceChart .setMargins Usage void setMargins(int leftMargin, int topMargin, int rightMargin, int bottomMargin); Description Sets the margins around the plot...

  • FinanceChart.setNumberLabelFormat
    ChartDirector Ver 4.1 (C++ Edition) FinanceChart .setNumberLabelFormat Usage void setNumberLabelFormat(const char *formatString); Description Sets the number format to use. The default number format...

  • FinanceChart.setPlotAreaStyle
    ChartDirector Ver 4.1 (C++ Edition) FinanceChart .setPlotAreaStyle Usage void setPlotAreaStyle(int bgColor, int majorHGridColor, int majorVGridColor, int minorHGridColor, int minorVGridColor);...

  • FinanceChart.setToolTipDateFormat
    ChartDirector Ver 4.1 (C++ Edition) FinanceChart .setToolTipDateFormat Usage void setToolTipDateFormat(const char *monthFormat, const char *dayFormat, const char *hourFormat); Description Sets the...

  • FinanceChart.setXAxisStyle
    ChartDirector Ver 4.1 (C++ Edition) FinanceChart .setXAxisStyle Usage void setXAxisStyle(const char *font, double fontSize, int fontColor, double fontAngle); Description Sets x-axis label style. The...

  • FinanceChart.setYAxisStyle
    ChartDirector Ver 4.1 (C++ Edition) FinanceChart .setYAxisStyle Usage void setYAxisStyle(const char *font, double fontSize, int fontColor, int axisMargin); Description Sets y-axis label style. The...

  • Finance Charts
    ChartDirector Ver 4.1 (C++ Edition) Finance Charts Title Description High-Low-Open-Close Chart Demonstrates a multi-color high-low-open-close chart. Candlestick Chart Demonstrates a candlestick...

  • Interactive Financial Chart
    ChartDirector Ver 4.1 (C++ Edition) Interactive Financial Chart This example demonstrates a full-featured financial chart in which the user can select the time ranges, technical indicators, and...

  • FinanceSimulator.FinanceSimulator
    ChartDirector Ver 4.1 (C++ Edition) FinanceSimulator .FinanceSimulator Usage FinanceSimulator(int seed, double startTime, double endTime, int resolution); Description Creates a FinanceSimulator...

  • FinanceSimulator.getCloseData
    ChartDirector Ver 4.1 (C++ Edition) FinanceSimulator .getCloseData Usage DoubleArray DoubleArray getCloseData(); Description Gets the close data series. Arguments None Return Value An array...

  • FinanceSimulator.getHighData
    ChartDirector Ver 4.1 (C++ Edition) FinanceSimulator .getHighData Usage DoubleArray DoubleArray getHighData(); Description Gets the high data series. Arguments None Return Value An array containing...

  • FinanceSimulator.getLowData
    ChartDirector Ver 4.1 (C++ Edition) FinanceSimulator .getLowData Usage DoubleArray DoubleArray getLowData(); Description Gets the low data series. Arguments None Return Value An array containing the...

  • FinanceSimulator.getOpenData
    ChartDirector Ver 4.1 (C++ Edition) FinanceSimulator .getOpenData Usage DoubleArray DoubleArray getOpenData(); Description Gets the open data series. Arguments None Return Value An array containing...

  • FinanceSimulator.getTimeStamps
    ChartDirector Ver 4.1 (C++ Edition) FinanceSimulator .getTimeStamps Usage DoubleArray getTimeStamps(); Description Gets the timestamps of the data series. Arguments None Return Value An array...

  • FinanceSimulator.getVolData
    ChartDirector Ver 4.1 (C++ Edition) FinanceSimulator .getVolData Usage DoubleArray DoubleArray getVolData(); Description Gets the volume data series. Arguments None Return Value An array containing...

  • FinanceSimulator
    ChartDirector Ver 4.1 (C++ Edition) FinanceSimulator FinanceSimulator is a utility class to produce tables with random numbers that look like valid financial data series. It facilitates testing and...

  • Using ChartDirector with MFC
    ChartDirector Ver 4.1 (C++ Edition) Using ChartDirector with MFC This section describes how to use ChartDirector in Windows programs using MFC. Even if you are not using MFC, it would be useful to...

  • The First Project
    ChartDirector Ver 4.1 (C++ Edition) The First Project To get a feeling of using ChartDirector, and to verify the ChartDirector development environment is set up properly, we will begin by building a...

  • Floating Box Chart
    ChartDirector Ver 4.1 (C++ Edition) Floating Box Chart This example demonstrates creating a multi-color floating box chart. This chart is composed of 4 box-whisker layers, created using...

  • Text Styles and Colors
    ChartDirector Ver 4.1 (C++ Edition) Text Styles and Colors This example demonstrates various text styles, text colors, background colors and text box border effects. In the chart above, 3 different...

  • Font Specification
    ChartDirector Ver 4.1 (C++ Edition) Font Specification Font Name In ChartDirector, the font name is simply the file name that contains the font. For example, under the Windows platform, the "Arial"...

  • Text Styles and Colors (2)
    ChartDirector Ver 4.1 (C++ Edition) Text Styles and Colors (2) This example demonstrates controlling text style and colors in various text containing objects (chart and axis titles, axis labels,...

  • 4 Quadrant Chart
    ChartDirector Ver 4.1 (C++ Edition) 4 Quadrant Chart This example demonstrates 4 quadrant charts in which the x-axis and y-axis meet at the origin at the center of the plot area. By default,...

  • Simple Gantt Chart
    ChartDirector Ver 4.1 (C++ Edition) Simple Gantt Chart This example demonstrates a simple gantt chart. This chart is created by using a horizontal box-whisker layer, in which only the "box" part of...

  • Gantt Charts
    ChartDirector Ver 4.1 (C++ Edition) Gantt Charts Title Description Simple Gantt Chart Demonstrates a simple gantt chart. Multi-Color Gantt Chart Demonstrates a multi-color gantt chart with milestone...

  • Bar Gap
    ChartDirector Ver 4.1 (C++ Edition) Bar Gap                This example demonstrates the effects of different bar gaps configured using...

  • Getting Started
    ChartDirector Ver 4.1 (C++ Edition) Getting Started This section introduces how to use ChartDirector in your development environment. It also demonstrates and explains concepts that are useful in...

  • Glass Bar Shading
    ChartDirector Ver 4.1 (C++ Edition) Glass Bar Shading This example demonstrates using glass shading effect for bars and gradient color for plot area background. It also demonstrates putting axis...

  • Glass Multi-Bar Chart
    ChartDirector Ver 4.1 (C++ Edition) Glass Multi-Bar Chart This example demonstrates a multi-bar chart with glass shading effect for bars and gradient color for plot area background. Glass lighting is...

  • Borderless Bar Chart
    ChartDirector Ver 4.1 (C++ Edition) Borderless Bar Chart This example demonstrates a horizontal bar chart with no axes, grid lines or and plot area border. It also demonstrates using gradient colors...

  • Horizontal Linear Meter
    ChartDirector Ver 4.1 (C++ Edition) Horizontal Linear Meter This example demonstrates a simple horizontal linear meter. A basic linear meter can be created using the following steps: Create a...

  • High-Low-Open-Close Chart
    ChartDirector Ver 4.1 (C++ Edition) High-Low-Open-Close Chart This example demonstrates a multi-color high-low-open-close chart. Create a HLOC layer using XYChart.addHLOCLayer . Add custom text to...

  • HLOCLayer
    ChartDirector Ver 4.1 (C++ Edition) HLOCLayer The HLOCLayer class represents high-low-open-close layers. HLOCLayer is a subclass of BaseBoxLayer . HLOCLayer objects are created by using...

  • HLOCLayer.setColorMethod
    ChartDirector Ver 4.1 (C++ Edition) HLOCLayer .setColorMethod Usage void setColorMethod(int colorMethod, int riseColor, int fallColor = -1, double leadValue = -1.7E308); Description Sets the coloring...

  • Icon Angular Meter
    ChartDirector Ver 4.1 (C++ Edition) Icon Angular Meter This example demonstrates a fuel-tank like meters, in which the meter is labelled by an icon and the scale shows text abbreviations. The scale...

  • Icon Donut Chart
    ChartDirector Ver 4.1 (C++ Edition) Icon Donut Chart This example modifies the Icon Pie Chart example by using a semi-transparent donut instead of a pie, and using metallic background color....

  • Icon Pie Chart
    ChartDirector Ver 4.1 (C++ Edition) Icon Pie Chart This example demonstrates using CDML and Parameter Substitution and Formatting to include icons in sector labels. It also demonstrates gradient...

  • Icon Pie Chart (2)
    ChartDirector Ver 4.1 (C++ Edition) Icon Pie Chart (2) This example extends the Icon Pie Chart example to demonstrate using CDML to include multiple fonts and colors in chart title, sector labels and...

  • ImageMapHandler.getHotSpot
    ChartDirector Ver 4.1 (C++ Edition) ImageMapHandler .getHotSpot Usage int getHotSpot(int x, int y); Description Gets the hot spot under the given point as the current hot spot. This method will...

  • ImageMapHandler.getKey
    ChartDirector Ver 4.1 (C++ Edition) ImageMapHandler .getKey Usage const char *getKey(int i); Description Gets the key of an attribute of the current hot spot. Each hot spot is associated with an...

  • ImageMapHandler.getValue
    ChartDirector Ver 4.1 (C++ Edition) ImageMapHandler .getValue Usage const char *getValue(const char *key); Description Gets the value of an attribute of the current hot spot by using its key. Each...

  • ImageMapHandler.getValue2
    ChartDirector Ver 4.1 (C++ Edition) ImageMapHandler .getValue2 Usage const char *getValue(int i); Description Gets the value of an attribute of the current hot spot by using its numeric index. Each...

  • ImageMapHandler
    ChartDirector Ver 4.1 (C++ Edition) ImageMapHandler ImageMapHandler is a utility class to handle image maps in HTML format (that is, as <AREA> tags). It determines if a given point is on a hot...

  • ImageMapHandler.ImageMapHandler
    ChartDirector Ver 4.1 (C++ Edition) ImageMapHandler .ImageMapHandler Usage ImageMapHandler(const char *imageMap); Description Constructs an image map handler object for the given image map. Arguments...

  • ChartDirector Ver 4.1 (C++ Edition) Documentation

  • indexindex
    A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 3 3D Angle (sample) 3D Area Chart (sample) 3D Bar Chart (sample) 3D Depth (sample) 3D Line Chart (sample) 3D Pie Chart (sample) 3D Shadow Mode...

  • indexleft
    function getTag(id) { if (document.getElementById) return document.getElementById(id); else return document.all[id]; } function tv(id) { var s = getTag("bk" + id).style; if (s.display ==...

  • indextop
    Index | A B C D E F G H I J K L M N O P Q R S T U V W X Y Z   |     Sync Page    |    Prev Page   |    Next Page    |

  • Installation
    ChartDirector Ver 4.1 (C++ Edition) Installation Installing ChartDirector for C++ ChartDirector for C++ is released as a zip file on Windows, and as a tar.gz file on Linux, FreeBSD, Mac OS X and...

  • IntArray
    ChartDirector Ver 4.1 (C++ Edition) IntArray The IntArray class represents arrays of integers. It encapsulates a pointer to a C array and the size of the array in a single object as follows: class...

  • IntArray.IntArray
    ChartDirector Ver 4.1 (C++ Edition) IntArray .IntArray Usage IntArray(const int *data, int len); Description The constructor of the IntArray class. Arguments Argument Default Description data...

  • InterLineLayer
    ChartDirector Ver 4.1 (C++ Edition) InterLineLayer The InterLineLayer class represents interline layers. InterLineLayer is a subclass of Layer . Interline layers are used to color the region between...

  • InterLineLayer.setGapColor
    ChartDirector Ver 4.1 (C++ Edition) InterLineLayer .setGapColor Usage void setGapColor(int gapColor12, int gapColor21 = -1); Description Sets the color used to fill the area under NoValue data...

  • Internationalization
    ChartDirector Ver 4.1 (C++ Edition) Internationalization Internally, ChartDirector uses Unicode to handle text. It fully supports international characters (that is, non-English and non-ASCII...

  • Introduction
    ChartDirector Ver 4.1 (C++ Edition) Introduction How to Read This Documentation This documentation is available in both CHM and HTML formats. Both formats can be downloaded from...

  • Layer.addCustomAggregateLabel
    ChartDirector Ver 4.1 (C++ Edition) Layer .addCustomAggregateLabel Usage TextBox *addCustomAggregateLabel(int dataItem, const char *label, const char *font = 0, double fontSize = 8, int fontColor =...

  • Layer.addCustomDataLabel
    ChartDirector Ver 4.1 (C++ Edition) Layer .addCustomDataLabel Usage TextBox *addCustomDataLabel(int dataSet, int dataItem, const char *label, const char *font = 0, double fontSize = 8, int fontColor...

  • Layer.addCustomGroupLabel
    ChartDirector Ver 4.1 (C++ Edition) Layer .addCustomGroupLabel Usage TextBox *addCustomGroupLabel(int dataGroup, int dataItem, const char *label, const char *font = 0, double fontSize = 8, int...

  • Layer.addDataGroup
    ChartDirector Ver 4.1 (C++ Edition) Layer .addDataGroup Usage void addDataGroup(const char *name = 0); Description Open a new data group. Currently, only stacked bar layers support data groups for...

  • Layer.addDataSet
    ChartDirector Ver 4.1 (C++ Edition) Layer .addDataSet Usage DataSet *addDataSet(DoubleArray data, int color = -1, const char *name = 0); Description Adds a data set to the chart layer. Arguments...

  • Layer.addExtraField
    ChartDirector Ver 4.1 (C++ Edition) Layer .addExtraField Usage void addExtraField(StringArray texts); Description Adds an array of text to be used as an extra field in various places. This method...

  • Layer.addExtraField2
    ChartDirector Ver 4.1 (C++ Edition) Layer .addExtraField2 Usage void addExtraField(DoubleArray numbers); Description Adds an array of numbers/dates to be used as an extra field in various places....

  • Layer.alignLayer
    ChartDirector Ver 4.1 (C++ Edition) Layer .alignLayer Usage void alignLayer(const Layer *layer, int dataSet); Description Aligns the layer with a data set of another bar chart layer in Side layout....

  • Layer.getDataSet
    ChartDirector Ver 4.1 (C++ Edition) Layer .getDataSet Usage DataSet *getDataSet(int dataSet); Description Gets the requested DataSet object. Arguments Argument Default Description dataSet (Mandatory)...

  • Layer.getHTMLImageMap
    ChartDirector Ver 4.1 (C++ Edition) Layer .getHTMLImageMap Usage const char *getHTMLImageMap(const char *url, const char *queryFormat = 0, const char *extraAttr = 0, int offsetX = 0, int offsetY =...

  • Layer.getImageCoor
    ChartDirector Ver 4.1 (C++ Edition) Layer .getImageCoor Usage const char *getImageCoor(int dataSet, int dataItem, int offsetX = 0, int offsetY = 0); Description Gets the image map coordinates of a...

  • Layer.getImageCoor2
    ChartDirector Ver 4.1 (C++ Edition) Layer .getImageCoor2 Usage const char *getImageCoor2(int dataItem, int offsetX = 0, int offsetY = 0); Description Gets the image map coordinates of a region...

  • Layer.getXCoor
    ChartDirector Ver 4.1 (C++ Edition) Layer .getXCoor Usage int getXCoor(double v) const; Description Gets the x pixel coordinate of a point given the x data value. Note: You must call BaseChart.layout...

  • Layer.getYCoor
    ChartDirector Ver 4.1 (C++ Edition) Layer .getYCoor Usage int getYCoor(double v, const Axis *yAxis = 0) const; Description Gets the y pixel coordinate of a point given the y data value. Note: You...

  • Layer
    ChartDirector Ver 4.1 (C++ Edition) Layer The Layer class is the base class for all XYChart layer classes. Method Inherited Description set3D (Self) Sets the 3D depth of the layer, and the 3D gap...

  • Layer.set3D
    ChartDirector Ver 4.1 (C++ Edition) Layer .set3D Usage void set3D(int d = -1, int zGap = 0); Description Sets the 3D depth of the layer, and the 3D gap between the current layer and the next layer....

  • Layer.setAggregateLabelFormat
    ChartDirector Ver 4.1 (C++ Edition) Layer .setAggregateLabelFormat Usage void setAggregateLabelFormat(const char *formatString); Description Sets the aggregate label format. By default, the aggregate...

  • Layer.setAggregateLabelStyle
    ChartDirector Ver 4.1 (C++ Edition) Layer .setAggregateLabelStyle Usage TextBox *setAggregateLabelStyle(const char *font = 0, double fontSize = 8, int fontColor = TextColor, double fontAngle = 0);...

  • Layer.setBorderColor
    ChartDirector Ver 4.1 (C++ Edition) Layer .setBorderColor Usage void setBorderColor(int color, int raisedEffect = 0); Description Sets the default border color and 3D raised effect when drawing data...

  • Layer.setDataCombineMethod
    ChartDirector Ver 4.1 (C++ Edition) Layer .setDataCombineMethod Usage void setDataCombineMethod(int m); Description Sets the method used to combine multiple data sets in a layer. This method is used...

  • Layer.setDataLabelFormat
    ChartDirector Ver 4.1 (C++ Edition) Layer .setDataLabelFormat Usage void setDataLabelFormat(const char *formatString); Description Sets the data label format. This method affects all data labels in...

  • Layer.setDataLabelStyle
    ChartDirector Ver 4.1 (C++ Edition) Layer .setDataLabelStyle Usage TextBox *setDataLabelStyle(const char *font = 0, double fontSize = 8, int fontColor = TextColor, double fontAngle = 0); Description...

  • Layer.setHTMLImageMap
    ChartDirector Ver 4.1 (C++ Edition) Layer .setHTMLImageMap Usage void setHTMLImageMap(const char *url, const char *queryFormat = 0, const char *extraAttr = 0); Description Override the default...

  • Layer.setLegend
    ChartDirector Ver 4.1 (C++ Edition) Layer .setLegend Usage void setLegend(int m); Description Sets the order of the data set names as appeared in the legend box. This method is for backward...

  • Layer.setLegendOrder
    ChartDirector Ver 4.1 (C++ Edition) Layer .setLegendOrder Usage void setLegendOrder(int dataSetOrder, int layerOrder = -1); Description Sets the order of the data set names as appeared in the legend...

  • Layer.setLineWidth
    ChartDirector Ver 4.1 (C++ Edition) Layer .setLineWidth Usage void setLineWidth(int w); Description Sets the default line width of lines when drawing data sets on the layer. This method only applies...

  • Layer.setUseYAxis
    ChartDirector Ver 4.1 (C++ Edition) Layer .setUseYAxis Usage void setUseYAxis(const Axis* a); Description Determine the y-axis to use when drawing the data sets. This method affects all data sets in...

  • Layer.setUseYAxis2
    ChartDirector Ver 4.1 (C++ Edition) Layer .setUseYAxis2 Usage void setUseYAxis2(bool b = true); Description Determine if the primary or secondary y-axis should be used when drawing the data sets....

  • Layer.setXData
    ChartDirector Ver 4.1 (C++ Edition) Layer .setXData Usage void setXData(DoubleArray xData); Description Sets the x values of the data points in the data sets. In most ChartDirector XY chart layers,...

  • Layer.setXData2
    ChartDirector Ver 4.1 (C++ Edition) Layer .setXData2 Usage void setXData(double minValue, double maxValue); Description Sets the x values of the data points in the data sets as evenly distributed in...

  • Layer.xZoneColor
    ChartDirector Ver 4.1 (C++ Edition) Layer .xZoneColor Usage int xZoneColor(double threshold, int belowColor, int aboveColor); Description Creates a x-zone color. A x-zone will change from one color...

  • Layer.yZoneColor
    ChartDirector Ver 4.1 (C++ Edition) Layer .yZoneColor Usage int yZoneColor(double threshold, int belowColor, int aboveColor, const Axis *yAxis = 0); Description Creates a y-zone color. A y-zone will...

  • Multi-Layer Gantt Chart
    ChartDirector Ver 4.1 (C++ Edition) Multi-Layer Gantt Chart This example demonstrates a gantt chart containing two layers for the planned and actual dates. The two layers are created using...

  • LegendBox.addKey
    ChartDirector Ver 4.1 (C++ Edition) LegendBox .addKey Usage void addKey(const char *text, int color, int lineWidth = 0, const DrawArea *drawarea = 0); Description Adds a custom entry to the legend...

  • LegendBox.addKey2
    ChartDirector Ver 4.1 (C++ Edition) LegendBox .addKey2 Usage void addKey(int pos, const char *text, int color, int lineWidth = 0, const DrawArea *drawarea = 0); Description Adds a custom entry to the...

  • LegendBox.getHTMLImageMap
    ChartDirector Ver 4.1 (C++ Edition) LegendBox .getHTMLImageMap Usage const char *getHTMLImageMap(const char *url, const char *queryFormat = 0, const char *extraAttr = 0, int offsetX = 0, int offsetY...

  • LegendBox.getImageCoor2
    ChartDirector Ver 4.1 (C++ Edition) LegendBox .getImageCoor2 Usage const char *getImageCoor(int dataItem, int offsetX = 0, int offsetY = 0); Description Gets the image map coordinates of an legend...

  • LegendBox
    ChartDirector Ver 4.1 (C++ Edition) LegendBox The class LegendBox represents legend boxes. It is a subclass of TextBox . Use BaseChart.addLegend or BaseChart.addLegend2 to add legend boxes to charts....

  • LegendBox.setCols
    ChartDirector Ver 4.1 (C++ Edition) LegendBox .setCols Usage void setCols(int noOfCols); Description Sets the number of columns in the legend box. Arguments Argument Default Description noOfCols...

  • LegendBox.setKeyBorder
    ChartDirector Ver 4.1 (C++ Edition) LegendBox .setKeyBorder Usage void setKeyBorder(int edgeColor, int raisedEffect = 0); Description Sets the default border color of the legend icon. This method...

  • LegendBox.setKeySize
    ChartDirector Ver 4.1 (C++ Edition) LegendBox .setKeySize Usage void setKeySize(int width, int height = -1, int gap = -1); Description Sets the size of the legend icon and its distance from the...

  • LegendBox.setKeySpacing
    ChartDirector Ver 4.1 (C++ Edition) LegendBox .setKeySpacing Usage void setKeySpacing(int keySpacing, int lineSpacing = -1); Description Sets the distance between two legend entries. In horizontal...

  • LegendBox.setReverse
    ChartDirector Ver 4.1 (C++ Edition) LegendBox .setReverse Usage void setReverse(bool b = true); Description Reverses the ordering of the legend entries. By default, the legend entries are ordered...

  • LegendBox.setText
    ChartDirector Ver 4.1 (C++ Edition) LegendBox .setText Usage void setText(const char *text); Description Sets the template of the legend text. The default template is "{dataSetName}", which means the...

  • Pie Chart with Legend
    ChartDirector Ver 4.1 (C++ Edition) Pie Chart with Legend This example demonstrates how to add a legend box to a pie chart. It also demonstrates the use of alternative sector label format. Add a...

  • License Agreement
    ChartDirector Ver 4.1 (C++ Edition) License Agreement You should carefully read the following terms and conditions before using the ChartDirector software. Your use of the ChartDirector software...

  • Line
    ChartDirector Ver 4.1 (C++ Edition) Line The Line class represents straight lines. Method Inherited Description setPos (Self) Sets the end-points of the line. setColor (Self) Sets the color of the...

  • Line.setColor
    ChartDirector Ver 4.1 (C++ Edition) Line .setColor Usage void setColor(int c); Description Sets the color of the line. By default, the color of the line is LineColor . To draw a dash line, you can...

  • Line.setPos
    ChartDirector Ver 4.1 (C++ Edition) Line .setPos Usage void setPos(int x1, int y1, int x2, int y2); Description Sets the end-points of the line. Arguments Argument Default Description x1 (Mandatory)...

  • Line.setWidth
    ChartDirector Ver 4.1 (C++ Edition) Line .setWidth Usage void setWidth(int w); Description Sets the width of the line in pixels. Arguments Argument Default Description w (Mandatory) The width...

  • Line.setZOrder
    ChartDirector Ver 4.1 (C++ Edition) Line .setZOrder Usage void setZOrder(int z); Description Sets the z-order (drawing order) of the line. Please refer to Box.setZOrder on an explanation of z-order...

  • LinearMeter.addZone
    ChartDirector Ver 4.1 (C++ Edition) LinearMeter .addZone Usage TextBox *addZone(double startValue, double endValue, int color, const char *label = 0); Description Adds a zone to the meter. Arguments...

  • LinearMeter
    ChartDirector Ver 4.1 (C++ Edition) LinearMeter The LinearMeter class represents linear meters. The LinearMeter class is a subclass of BaseMeter . Method Inherited Description LinearMeter (Self)...

  • LinearMeter.LinearMeter
    ChartDirector Ver 4.1 (C++ Edition) LinearMeter .LinearMeter Usage LinearMeter(int width, int height, int bgColor = BackgroundColor, int edgeColor = Transparent, int raisedEffect = 0); Description...

  • LinearMeter.setMeter
    ChartDirector Ver 4.1 (C++ Edition) LinearMeter .setMeter Usage void setMeter(int leftX, int topY, int width, int height, int axisPos = Left, bool isReversed = false); Description Sets the...

  • LinearMeter.setRail
    ChartDirector Ver 4.1 (C++ Edition) LinearMeter .setRail Usage void setRail(int railColor, int railWidth = 2, int railOffset = 6); Description Sets the position, width and color of the pointer rail....

  • Linear Zone Meter
    ChartDirector Ver 4.1 (C++ Edition) Linear Zone Meter This example demonstrates a linear meter which is labelled with zones. The above meter is achieved by using LinearMeter.addZone to add labelled...

  • Line Charts
    ChartDirector Ver 4.1 (C++ Edition) Line Charts Title Description Simple Line Chart Demonstrates the basic steps in creating line charts. Compact Line Chart Extends the Simple Line Chart example by...

  • Line Comparison
    ChartDirector Ver 4.1 (C++ Edition) Line Comparison This example demonstrates filling the area between two lines or curves, as well as a number of advanced chart formatting techniques. ChartDirector...

  • LineLayer.getLine
    ChartDirector Ver 4.1 (C++ Edition) LineLayer .getLine Usage LineObj *getLine(int dataSet = 0); Description Retrieves an opaque LineObj representing a line in the line layer. The opaque LineObj is to...

  • LineLayer
    ChartDirector Ver 4.1 (C++ Edition) LineLayer The LineLayer class represents line layers. LineLayer is a subclass of Layer . LineLayer objects are created by using XYChart.addLineLayer and...

  • LineLayer.setGapColor
    ChartDirector Ver 4.1 (C++ Edition) LineLayer .setGapColor Usage void setGapColor(int lineColor, int lineWidth = -1); Description Sets the color and style of the line used for jumping across NoValue...

  • LineLayer.setImageMapWidth
    ChartDirector Ver 4.1 (C++ Edition) LineLayer .setImageMapWidth Usage void setImageMapWidth(int width); Description Sets the effective width of the line used for producing image maps. For thin lines,...

  • LineLayer.setSymbolScale
    ChartDirector Ver 4.1 (C++ Edition) LineLayer .setSymbolScale Usage void setSymbolScale(DoubleArray zDataX, int scaleTypeX = PixelScale, DoubleArray zDataY = DoubleArray(), int scaleTypeY =...

  • Log Scale Axis
    ChartDirector Ver 4.1 (C++ Edition) Log Scale Axis    This example demonstrates using a log scale axis versus a linear scale axis. In ChartDirector, log scale axis can be configured using...

  • Mark.getLine
    ChartDirector Ver 4.1 (C++ Edition) Mark .getLine Usage LineObj *getLine(); Description Retrieves an opaque LineObj representing the mark line. The opaque LineObj is to be used in...

  • Mark
    ChartDirector Ver 4.1 (C++ Edition) Mark The Mark class represents mark lines. It is a subclass of TextBox . Mark objects are created using Axis.addMark . Method Inherited Description setValue (Self)...

  • Mark.setDrawOnTop
    ChartDirector Ver 4.1 (C++ Edition) Mark .setDrawOnTop Usage void setDrawOnTop(bool b); Description Determine whether the mark line is drawn at the front of the chart layers, or at the back of the...

  • Mark.setLineWidth
    ChartDirector Ver 4.1 (C++ Edition) Mark .setLineWidth Usage void setLineWidth(int w); Description Sets the line width of the mark line. Arguments Argument Default Description w (Mandatory) The mark...

  • Mark.setMarkColor
    ChartDirector Ver 4.1 (C++ Edition) Mark .setMarkColor Usage void setMarkColor(int lineColor, int textColor = -1, int tickColor = -1); Description Sets the line, text and tick colors of the mark...

  • Mark.setValue
    ChartDirector Ver 4.1 (C++ Edition) Mark .setValue Usage void setValue(double value); Description Sets the value of the mark line. Arguments Argument Default Description value (Mandatory) The value...

  • Marks and Zones
    ChartDirector Ver 4.1 (C++ Edition) Marks and Zones This example demonstrates adding marks and zones to the chart, and adding custom legend keys to represent the zones. A "mark" is a line drawn in...

  • Marks and Zones (2)
    ChartDirector Ver 4.1 (C++ Edition) Marks and Zones (2) This example demonstrates adding marks and zones to the chart, and positioning mark labels. The chart in the example consists of three mark...

  • MemBlock
    ChartDirector Ver 4.1 (C++ Edition) MemBlock The MemBlock class represents memory blocks (arrays of bytes). It encapsulates a pointer to a C array of "char" and the size of the array in a single...

  • MemBlock.MemBlock
    ChartDirector Ver 4.1 (C++ Edition) MemBlock .MemBlock Usage MemBlock(const char *data, int len); Description The constructor of the MemBlock class. Arguments Argument Default Description data...

  • MeterPointer
    ChartDirector Ver 4.1 (C++ Edition) MeterPointer The MeterPointer class represents meter pointers. It is created by using BaseMeter.addPointer . Method Inherited Description setPos (Self) Sets the...

  • MeterPointer.setColor
    ChartDirector Ver 4.1 (C++ Edition) MeterPointer .setColor Usage void setColor(int fillColor, int edgeColor = -1); Description Sets the fill and border colors of the meter pointer. Arguments Argument...

  • MeterPointer.setPos
    ChartDirector Ver 4.1 (C++ Edition) MeterPointer .setPos Usage void setPos(double value); Description Sets the value the pointer points to on the meter scale. Arguments Argument Default Description...

  • MeterPointer.setShape
    ChartDirector Ver 4.1 (C++ Edition) MeterPointer .setShape Usage void setShape(int pointerType, double lengthRatio = NoValue, double widthRatio = NoValue); Description Sets the shape of the meter...

  • MeterPointer.setShape2
    ChartDirector Ver 4.1 (C++ Edition) MeterPointer .setShape2 Usage void setShape(IntArray pointerCoor, double lengthRatio = NoValue, double widthRatio = NoValue); Description Sets the shape of the...

  • MeterPointer.setZOrder
    ChartDirector Ver 4.1 (C++ Edition) MeterPointer .setZOrder Usage void setZOrder(int z); Description Sets the z-order (drawing order) of the meter pointer. Please refer to Box.setZOrder on an...

  • Meters and Gauges
    ChartDirector Ver 4.1 (C++ Edition) Meters and Gauges In this section, we will discuss how to create meters and gauges using ChartDirector through a number of examples. Title Description Semi-Circle...

  • Multi-Pointer Angular Meter
    ChartDirector Ver 4.1 (C++ Edition) Multi-Pointer Angular Meter This example demonstrates adding multiple pointers of different styles to a meter. ChartDirector supports adding arbitrary number of...

  • Multiple Axes
    ChartDirector Ver 4.1 (C++ Edition) Multiple Axes This example demonstrates using 4 y-axes in a chart. The 4 axes are the default primary and secondary y-axes at the left and right edges of the plot...

  • Multi-Bar Chart
    ChartDirector Ver 4.1 (C++ Edition) Multi-Bar Chart This example demonstrates a multi-bar chart, in which bars are clustered. It also demonstrates using alternative plot area background colors, and...

  • MultiChart.addChart
    ChartDirector Ver 4.1 (C++ Edition) MultiChart .addChart Usage void addChart(int x, int y, BaseChart *c); Description Adds a BaseChart object (or its subclass such as PieChart , XYChart , PolarChart...

  • MultiChart
    ChartDirector Ver 4.1 (C++ Edition) MultiChart The MultiChart class represents multi-chart. MultiChart is a subclass of BaseChart . A multi-chart is a container to contain multiple charts. You can...

  • MultiChart.MultiChart
    ChartDirector Ver 4.1 (C++ Edition) MultiChart .MultiChart Usage MultiChart(int width, int height, int bgColor = BackgroundColor, int edgeColor = Transparent, int raisedEffect = 0); Description...

  • MultiChart.setMainChart
    ChartDirector Ver 4.1 (C++ Edition) MultiChart .setMainChart Usage void setMainChart(const BaseChart *c); Description Sets the chart that receives view port mouse actions (for zooming and scrolling...

  • Multi-Cylinder Chart
    ChartDirector Ver 4.1 (C++ Edition) Multi-Cylinder Chart This example demonstrates a multi-bar chart with cylinder shading effects. It also demonstrates using dotted line style for grid lines. The...

  • Multi-Depth Pie Chart
    ChartDirector Ver 4.1 (C++ Edition) Multi-Depth Pie Chart This example demonstrates a 3D pie chart where sectors have different 3D heights. Instead of using PieChart.set3D to set a single 3D depth...

  • Multi-Pointer Horizontal Meter
    ChartDirector Ver 4.1 (C++ Edition) Multi-Pointer Horizontal Meter This example demonstrates a horizontal linear meter with multiple pointers. ChartDirector supports adding arbitrary number of...

  • Multi-Line Chart
    ChartDirector Ver 4.1 (C++ Edition) Multi-Line Chart This example demonstrates a chart with multiple lines of different styles. It also demonstrates using frame with rounded corners, title with glass...

  • Multi-Pie Chart
    ChartDirector Ver 4.1 (C++ Edition) Multi-Pie Chart       This example demonstrates drawing multiple pies with different data and colors. It also demonstrates putting labels on...

  • Multi Radar Chart
    ChartDirector Ver 4.1 (C++ Edition) Multi Radar Chart This example demonstrates a radar chart with two layers and a number of chart formatting effects. Create a PolarChart object using...

  • Multi-Shape Bar Chart
    ChartDirector Ver 4.1 (C++ Edition) Multi-Shape Bar Chart This example demonstrates a multi-bar chart in which each data set has a different bar shape. The bar shapes are specified using...

  • Multi-Stacked Bar Chart
    ChartDirector Ver 4.1 (C++ Edition) Multi-Stacked Bar Chart This example demonstrates combining multi-bar style with stacked bar style. It also demonstrates drawing horizontal bar charts, using icons...

  • Multi-Symbol Line Chart
    ChartDirector Ver 4.1 (C++ Edition) Multi-Symbol Line Chart This example demonstrates a line with different symbols for different data points. It also demonstrates irregularly spaced data points on...

  • Multi-Pointer Vertical Meter
    ChartDirector Ver 4.1 (C++ Edition) Multi-Pointer Vertical Meter This example demonstrates a vertical linear meter with multiple pointers. ChartDirector supports adding arbitrary number of pointers...

  • No Value Specification
    ChartDirector Ver 4.1 (C++ Edition) No Value Specification To draw charts, you need to supply data. In ChartDirector, data are supplied as an array of numbers. In many cases, a data point will be...

  • ChartDirector Object Model Overview
    ChartDirector Ver 4.1 (C++ Edition) ChartDirector Object Model Overview This section will give a very brief high level overview of the ChartDirector object model, which may be helpful for...

  • Using ChartDirector with Other GUI Frameworks
    ChartDirector Ver 4.1 (C++ Edition) Using ChartDirector with Other GUI Frameworks This section is intended for developers that need to use ChartDirector with GUI frameworks that are not MFC based, or...

  • Overlapping Bar Chart
    ChartDirector Ver 4.1 (C++ Edition) Overlapping Bar Chart This example demonstrates a multi-bar chart in which the bars within a cluster overlaps. The overlapping effect is configured using...

  • Parameter Substitution and Formatting
    ChartDirector Ver 4.1 (C++ Edition) Parameter Substitution and Formatting ChartDirector charts often contain a lot of text strings. For example, sector labels in pie charts, axis labels for x and y...

  • Pareto Chart
    ChartDirector Ver 4.1 (C++ Edition) Pareto Chart This example demonstrates the pareto chart style. A pareto chart is a bar chart with the data sorted in descending order, together with a line chart...

  • Pattern Area Chart
    ChartDirector Ver 4.1 (C++ Edition) Pattern Area Chart This example demonstrates using a pattern for filling the area in an area chart, together with a number of chart formatting features. Create an...

  • Percentage Area Chart
    ChartDirector Ver 4.1 (C++ Edition) Percentage Area Chart This example demonstrates creating a percentage area chart. It also demonstrates how to include icons in the legend box using CDML . A...

  • Percentage Bar Chart
    ChartDirector Ver 4.1 (C++ Edition) Percentage Bar Chart This example demonstrates creating a percentage bar chart. It also demonstrates how to include icons in the legend box using CDML . A...

  • PieChart
    ChartDirector Ver 4.1 (C++ Edition) PieChart The PieChart class represents pie charts. It is a subclass of BaseChart . In ChartDirector, pie charts includes donut charts. Method Inherited Description...

  • PieChart.PieChart
    ChartDirector Ver 4.1 (C++ Edition) PieChart .PieChart Usage PieChart(int width, int height, int bgColor = BackgroundColor, int edgeColor = Transparent, int raisedEffect = 0); Description Creates a...

  • PieChart.sector
    ChartDirector Ver 4.1 (C++ Edition) PieChart .sector Usage Sector *sector(int sectorNo); Description Retrieves the Sector object representing a single sector in the pie chart. Arguments Argument...

  • PieChart.set3D
    ChartDirector Ver 4.1 (C++ Edition) PieChart .set3D Usage void set3D(int depth = -1, double angle = -1, bool shadowMode = false); Description Adds 3D effects to the pie. Arguments Argument Default...

  • PieChart.set3D2
    ChartDirector Ver 4.1 (C++ Edition) PieChart .set3D2 Usage void set3D(DoubleArray depths, double angle = 45, bool shadowMode = false); Description Adds 3D effects to the pie, where each sector can...

  • PieChart.setData
    ChartDirector Ver 4.1 (C++ Edition) PieChart .setData Usage void setData(DoubleArray data, StringArray labels = StringArray()); Description Sets the data used to draw the pie chart. Arguments...

  • PieChart.setDonutSize
    ChartDirector Ver 4.1 (C++ Edition) PieChart .setDonutSize Usage void setDonutSize(int x, int y, int r, int r2); Description Sets the position and size of the donut in the donut chart. Arguments...

  • PieChart.setExplode
    ChartDirector Ver 4.1 (C++ Edition) PieChart .setExplode Usage void setExplode(int sectorNo, int distance = -1); Description Explode a sector from the pie. Arguments Argument Default Description...

  • PieChart.setExplodeGroup
    ChartDirector Ver 4.1 (C++ Edition) PieChart .setExplodeGroup Usage void setExplodeGroup(int startSector, int endSector, int distance = -1); Description Explode a group of sectors from the pie....

  • PieChart.setJoinLine
    ChartDirector Ver 4.1 (C++ Edition) PieChart .setJoinLine Usage void setJoinLine(int joinLineColor, int joinLineWidth = 1); Description Sets the color and width of the join lines used to connect the...

  • PieChart.setLabelFormat
    ChartDirector Ver 4.1 (C++ Edition) PieChart .setLabelFormat Usage void setLabelFormat(const char *formatString); Description Sets the format of the all sector labels. This method affects all...

  • PieChart.setLabelLayout
    ChartDirector Ver 4.1 (C++ Edition) PieChart .setLabelLayout Usage void setLabelLayout(int layoutMethod, int pos = -1, int topBound = -1, int bottomBound = -1); Description Sets the layout method and...

  • PieChart.setLabelPos
    ChartDirector Ver 4.1 (C++ Edition) PieChart .setLabelPos Usage void setLabelPos(int pos, int joinLineColor = -1); Description Sets the circular label layout method, and configure the join lines used...

  • PieChart.setLabelStyle
    ChartDirector Ver 4.1 (C++ Edition) PieChart .setLabelStyle Usage TextBox *setLabelStyle(const char *font = 0, double fontSize = 8, int fontColor = TextColor); Description Sets the style used to draw...

  • PieChart.setLineColor
    ChartDirector Ver 4.1 (C++ Edition) PieChart .setLineColor Usage void setLineColor(int edgeColor, int joinLineColor = -1); Description Sets the sector edge color and join line color. This method...

  • PieChart.setPieSize
    ChartDirector Ver 4.1 (C++ Edition) PieChart .setPieSize Usage void setPieSize(int x, int y, int r); Description Sets the position and size of the pie in the pie chart. Arguments Argument Default...

  • PieChart.setStartAngle
    ChartDirector Ver 4.1 (C++ Edition) PieChart .setStartAngle Usage void setStartAngle(double startAngle, bool clockWise = true); Description Sets the angle of the first sector in the pie and the...

  • Pie Charts
    ChartDirector Ver 4.1 (C++ Edition) Pie Charts In this section, we will discuss how to create pie charts using ChartDirector through a number of examples. Title Description Simple Pie Chart...

  • PlotArea
    ChartDirector Ver 4.1 (C++ Edition) PlotArea The PlotArea class represents plot areas in XY charts. PlotArea objects are obtained by calling XYChart.setPlotArea . Method Inherited Description...

  • PlotArea.set4QBgColor
    ChartDirector Ver 4.1 (C++ Edition) PlotArea .set4QBgColor Usage void set4QBgColor(int Q1Color, int Q2Color, int Q3Color, int Q4Color, int edgeColor = -1); Description Sets using 4 background plot...

  • PlotArea.setAltBgColor
    ChartDirector Ver 4.1 (C++ Edition) PlotArea .setAltBgColor Usage void setAltBgColor(bool horizontal, int color1, int color2, int edgeColor = -1); Description Sets alternating plot area background...

  • PlotArea.setBackground
    ChartDirector Ver 4.1 (C++ Edition) PlotArea .setBackground Usage void setBackground(int color, int altBgColor = -1, int edgeColor = -1); Description Sets the background colors and the border color...

  • PlotArea.setBackground2
    ChartDirector Ver 4.1 (C++ Edition) PlotArea .setBackground2 Usage void setBackground(const char *img, int align = Center); Description Sets the specified image file as the background image of the...

  • PlotArea.setGridColor
    ChartDirector Ver 4.1 (C++ Edition) PlotArea .setGridColor Usage void setGridColor(int hGridColor, int vGridColor = Transparent, int minorHGridColor = -1, int minorVGridColor = -1); Description Sets...

  • PlotArea.setGridWidth
    ChartDirector Ver 4.1 (C++ Edition) PlotArea .setGridWidth Usage void setGridWidth(int hGridWidth, int vGridWidth = -1, int minorHGridWidth = -1, int minorVGridWidth = -1); Description Sets the...

  • Polar Area Chart
    ChartDirector Ver 4.1 (C++ Edition) Polar Area Chart This examples demonstrates a polar area chart. The polar area layer is created using PolarChart.addAreaLayer . In this example, 3 area layers are...

  • PolarAreaLayer
    ChartDirector Ver 4.1 (C++ Edition) PolarAreaLayer The PolarAreaLayer class represents polar area layers. PolarAreaLayer is a subclass of PolarLayer . PolarAreaLayer objects are created by using...

  • Polar Bubble Chart
    ChartDirector Ver 4.1 (C++ Edition) Polar Bubble Chart This example demonstrates how to create polar bubble charts. It also demonstrates using alternating background colors along the radial...

  • PolarChart.addAreaLayer
    ChartDirector Ver 4.1 (C++ Edition) PolarChart .addAreaLayer Usage PolarAreaLayer *addAreaLayer(DoubleArray data, int color = -1, const char *name = 0); Description Adds a polar area layer to the...

  • PolarChart.addLineLayer
    ChartDirector Ver 4.1 (C++ Edition) PolarChart .addLineLayer Usage PolarLineLayer *addLineLayer(DoubleArray data, int color = -1, const char *name = 0); Description Adds a polar line layer to the...

  • PolarChart.addSplineAreaLayer
    ChartDirector Ver 4.1 (C++ Edition) PolarChart .addSplineAreaLayer Usage PolarSplineAreaLayer *addSplineAreaLayer(DoubleArray data, int color = -1, const char *name = 0); Description Adds a polar...

  • PolarChart.addSplineLineLayer
    ChartDirector Ver 4.1 (C++ Edition) PolarChart .addSplineLineLayer Usage PolarSplineLineLayer *addSplineLineLayer(DoubleArray data, int color = -1, const char *name = 0); Description Adds a polar...

  • PolarChart.addVectorLayer
    ChartDirector Ver 4.1 (C++ Edition) PolarChart .addVectorLayer Usage PolarVectorLayer *addVectorLayer(DoubleArray rData, DoubleArray aData, DoubleArray lengths, DoubleArray directions, int...

  • PolarChart.angularAxis
    ChartDirector Ver 4.1 (C++ Edition) PolarChart .angularAxis Usage AngularAxis *angularAxis(); Description Gets the AngularAxis object representing the angular axis of the polar chart. Arguments None...

  • PolarChart.getXCoor
    ChartDirector Ver 4.1 (C++ Edition) PolarChart .getXCoor Usage int getXCoor(double r, double a) const; Description Gets the x pixel coordinate of a point given its radial and angular coordinates. The...

  • PolarChart.getYCoor
    ChartDirector Ver 4.1 (C++ Edition) PolarChart .getYCoor Usage int getYCoor(double r, double a) const; Description Gets the y pixel coordinate of a point given its radial and angular coordinates. The...

  • PolarChart
    ChartDirector Ver 4.1 (C++ Edition) PolarChart The PolarChart class represents polar charts (including radar charts). The PolarChart class is a subclass of BaseChart . Method Inherited Description...

  • PolarChart.PolarChart
    ChartDirector Ver 4.1 (C++ Edition) PolarChart .PolarChart Usage PolarChart(int width, int height, int bgColor = BackgroundColor, int edgeColor = Transparent, int raisedEffect = 0); Description...

  • PolarChart.radialAxis
    ChartDirector Ver 4.1 (C++ Edition) PolarChart .radialAxis Usage RadialAxis *radialAxis(); Description Gets the RadialAxis object representing the radial axis of the polar chart. Arguments None...

  • PolarChart.setGridColor
    ChartDirector Ver 4.1 (C++ Edition) PolarChart .setGridColor Usage void setGridColor(int rGridColor = 0x80000000, int rGridWidth = 1, int aGridColor = 0x80000000, int aGridWidth = 1); Description...

  • PolarChart.setGridStyle
    ChartDirector Ver 4.1 (C++ Edition) PolarChart .setGridStyle Usage void setGridStyle(bool polygonGrid, bool gridOnTop = true); Description Configure whether to use circular grids or polygon grids,...

  • PolarChart.setPlotArea
    ChartDirector Ver 4.1 (C++ Edition) PolarChart .setPlotArea Usage void setPlotArea(int x, int y, int r, int bgColor = Transparent, int edgeColor = Transparent, int edgeWidth = 1); Description Sets...

  • PolarChart.setPlotAreaBg
    ChartDirector Ver 4.1 (C++ Edition) PolarChart .setPlotAreaBg Usage void setPlotAreaBg(int bgColor1, int bgColor2 = -1, bool altRings = true); Description Sets alternating background colors for the...

  • PolarChart.setStartAngle
    ChartDirector Ver 4.1 (C++ Edition) PolarChart .setStartAngle Usage void setStartAngle(double startAngle, bool clockwise = true); Description Sets the angle of the radial axis, and the layout...

  • Polar/Radar Charts
    ChartDirector Ver 4.1 (C++ Edition) Polar/Radar Charts In this section, we will discuss how to create polar/radar charts using ChartDirector through a number of examples. Title Description Simple...

  • PolarLayer.addCustomDataLabel
    ChartDirector Ver 4.1 (C++ Edition) PolarLayer .addCustomDataLabel Usage TextBox *addCustomDataLabel(int i, const char *label, const char *font = 0, double fontSize = 8, int fontColor = TextColor,...

  • PolarLayer.getHTMLImageMap
    ChartDirector Ver 4.1 (C++ Edition) PolarLayer .getHTMLImageMap Usage const char *getHTMLImageMap(const char *url, const char *queryFormat = 0, const char *extraAttr = 0, int offsetX = 0, int offsetY...

  • PolarLayer.getImageCoor
    ChartDirector Ver 4.1 (C++ Edition) PolarLayer .getImageCoor Usage const char *getImageCoor(int dataItem, int offsetX = 0, int offsetY = 0); Description Gets the image map coordinates of a data...

  • PolarLayer
    ChartDirector Ver 4.1 (C++ Edition) PolarLayer The PolarLayer class is the base class for all PolarChart layer classes. Method Inherited Description setAngles (Self) Sets the angular coordinates of...

  • PolarLayer.setAngles
    ChartDirector Ver 4.1 (C++ Edition) PolarLayer .setAngles Usage void setAngles(DoubleArray angles); Description Sets the angular coordinates of the data points. Note that the angular coordinates are...

  • PolarLayer.setBorderColor
    ChartDirector Ver 4.1 (C++ Edition) PolarLayer .setBorderColor Usage void setBorderColor(int edgeColor); Description Sets the border color for drawing the data on the layer. This method only applies...

  • PolarLayer.setDataLabelFormat
    ChartDirector Ver 4.1 (C++ Edition) PolarLayer .setDataLabelFormat Usage void setDataLabelFormat(const char *formatString); Description Sets the data label format. By default, the data label format...

  • PolarLayer.setDataLabelStyle
    ChartDirector Ver 4.1 (C++ Edition) PolarLayer .setDataLabelStyle Usage TextBox *setDataLabelStyle(const char *font = 0, double fontSize = 8, int fontColor = TextColor, double fontAngle = 0);...

  • PolarLayer.setDataSymbol
    ChartDirector Ver 4.1 (C++ Edition) PolarLayer .setDataSymbol Usage void setDataSymbol(int symbol, int size = 7, int fillColor = -1, int edgeColor = -1, int lineWidth = 1); Description Uses one of...

  • PolarLayer.setDataSymbol2
    ChartDirector Ver 4.1 (C++ Edition) PolarLayer .setDataSymbol2 Usage void setDataSymbol(const char *image); Description Load an image from a file and use it as the graphics symbol to plot the data...

  • PolarLayer.setDataSymbol3
    ChartDirector Ver 4.1 (C++ Edition) PolarLayer .setDataSymbol3 Usage void setDataSymbol(const DrawArea *obj); Description Uses a DrawArea object as the graphics symbol to plot the data points....

  • PolarLayer.setDataSymbol4
    ChartDirector Ver 4.1 (C++ Edition) PolarLayer .setDataSymbol4 Usage void setDataSymbol(IntArray polygon, int size = 11, int fillColor = -1, int edgeColor = -1); Description Uses a custom polygon as...

  • PolarLayer.setHTMLImageMap
    ChartDirector Ver 4.1 (C++ Edition) PolarLayer .setHTMLImageMap Usage void setHTMLImageMap(const char *url, const char *queryFormat = 0, const char *extraAttr = 0); Description Override the default...

  • PolarLayer.setImageMapWidth
    ChartDirector Ver 4.1 (C++ Edition) PolarLayer .setImageMapWidth Usage void setImageMapWidth(int width); Description Sets the effective size of a data point for producing image maps. For the purpose...

  • PolarLayer.setLineWidth
    ChartDirector Ver 4.1 (C++ Edition) PolarLayer .setLineWidth Usage void setLineWidth(int w); Description Sets the line width of lines when drawing the data on the layer. Arguments Argument Default...

  • PolarLayer.setSymbolScale
    ChartDirector Ver 4.1 (C++ Edition) PolarLayer .setSymbolScale Usage void setSymbolScale(DoubleArray zData, int scaleType = PixelScale); Description Sets the size of the symbol for each data point...

  • Polar Line Chart
    ChartDirector Ver 4.1 (C++ Edition) Polar Line Chart This example demonstrates a polar line chart, completed with data symbols and data labels. The grid lines in this example is circular (instead of...

  • PolarLineLayer
    ChartDirector Ver 4.1 (C++ Edition) PolarLineLayer The PolarLineLayer class represents polar area layers. PolarLineLayer is a subclass of PolarLayer . PolarLineLayer objects are created by using...

  • PolarLineLayer.setCloseLoop
    ChartDirector Ver 4.1 (C++ Edition) PolarLineLayer .setCloseLoop Usage void setCloseLoop(bool b); Description Specifies whether the polar line should form a close loop (joining the last point to the...

  • PolarLineLayer.setGapColor
    ChartDirector Ver 4.1 (C++ Edition) PolarLineLayer .setGapColor Usage void setGapColor(int lineColor, int lineWidth = -1); Description Sets the color and style of the line used for jumping across...

  • Polar Scatter Chart
    ChartDirector Ver 4.1 (C++ Edition) Polar Scatter Chart This example demonstrates how to create polar scatter charts. It also demonstrates using alternating background colors along the angular...

  • Polar Spline Chart
    ChartDirector Ver 4.1 (C++ Edition) Polar Spline Chart This example demonstrates polar spline line and polar spline area. The polar spline line is created using PolarChart.addSplineLineLayer . The...

  • PolarSplineAreaLayer
    ChartDirector Ver 4.1 (C++ Edition) PolarSplineAreaLayer The PolarSplineAreaLayer class represents polar spline area layers. PolarSplineAreaLayer is a subclass of PolarAreaLayer ....

  • PolarSplineAreaLayer.setTension
    ChartDirector Ver 4.1 (C++ Edition) PolarSplineAreaLayer .setTension Usage void setTension(double tension); Description Sets the tension to use when computing the spline curve. The tension parameter...

  • PolarSplineLineLayer
    ChartDirector Ver 4.1 (C++ Edition) PolarSplineLineLayer The PolarSplineLineLayer class represents polar spline line layers. PolarSplineLineLayer is a subclass of PolarLineLayer ....

  • PolarSplineLineLayer.setTension
    ChartDirector Ver 4.1 (C++ Edition) PolarSplineLineLayer .setTension Usage void setTension(double tension); Description Sets the tension to use when computing the spline curve. The tension parameter...

  • Polar Vector Chart
    ChartDirector Ver 4.1 (C++ Edition) Polar Vector Chart This example demonstrates a polar vector chart. A vector chart is like a scatter chart, but the symbols are arrows which can be of arbitrary...

  • PolarVectorLayer
    ChartDirector Ver 4.1 (C++ Edition) PolarVectorLayer The PolarVectorLayer class represents polar vector layers. PolarVectorLayer is a subclass of PolarLayer . VectorLayer objects are created by using...

  • PolarVectorLayer.setArrowAlignment
    ChartDirector Ver 4.1 (C++ Edition) PolarVectorLayer .setArrowAlignment Usage void setArrowAlignment(int alignment); Description Sets the alignment of the vector relative to the data point. Arguments...

  • PolarVectorLayer.setArrowHead
    ChartDirector Ver 4.1 (C++ Edition) PolarVectorLayer .setArrowHead Usage void setArrowHead(int width, int height = 0); Description Sets the size of the arrow head. Arguments Argument Default...

  • PolarVectorLayer.setArrowHead2
    ChartDirector Ver 4.1 (C++ Edition) PolarVectorLayer .setArrowHead2 Usage void setArrowHead(IntArray polygon); Description Sets a custom shape to be used as the arrow head. The custom shape is...

  • PolarVectorLayer.setArrowStem
    ChartDirector Ver 4.1 (C++ Edition) PolarVectorLayer .setArrowStem Usage void setArrowStem(IntArray polygon); Description Sets a custom shape to be used as the arrow stem. By default, the arrow stem...

  • PolarVectorLayer.setIconSize
    ChartDirector Ver 4.1 (C++ Edition) PolarVectorLayer .setIconSize Usage void setIconSize(int height, int width = 0); Description Sets the size of the icon to be used in legend box. By default, if a...

  • PolarVectorLayer.setVector
    ChartDirector Ver 4.1 (C++ Edition) PolarVectorLayer .setVector Usage void setVector(DoubleArray lengths, DoubleArray directions, int lengthScale = PixelScale); Description Sets the lengths and...

  • Circular Zones
    ChartDirector Ver 4.1 (C++ Edition) Circular Zones This example demonstrates adding circular zones to a polar chart. In ChartDirector, a zone defined on the radial axis will mark a radius range, and...

  • Sector Zones
    ChartDirector Ver 4.1 (C++ Edition) Sector Zones This example demonstrates adding sector zones to a polar chart. In ChartDirector, a zone defined on the angular axis will mark an angular range, and...

  • Polygon Bar Shapes
    ChartDirector Ver 4.1 (C++ Edition) Polygon Bar Shapes This example demonstrates bars of various polygonal shapes. ChartDirector supports bars in cylindrical or arbitrary polygonal shapes. This is...

  • Positive Negative Bars
    ChartDirector Ver 4.1 (C++ Edition) Positive Negative Bars This example demonstrates a bar chart containing positive and negative data, represented by different colors. In this example, the two...

  • Pos/Neg Waterfall Chart
    ChartDirector Ver 4.1 (C++ Edition) Pos/Neg Waterfall Chart This example demonstrates a waterfall chart with positive and negative data shown in different colors. This chart is created as a...

  • RadialAxis
    ChartDirector Ver 4.1 (C++ Edition) RadialAxis The RadialAxis class represents radial axes in polar charts. The radial axis is the axis representing the radius component of a polar coordinate. In the...

  • RanTable.getCol
    ChartDirector Ver 4.1 (C++ Edition) RanTable .getCol Usage DoubleArray getCol(int i); Description Gets the request column as an array of numbers. Arguments Argument Default Description i (Mandatory)...

  • RanTable
    ChartDirector Ver 4.1 (C++ Edition) RanTable RanTable is a utility class to produce tables with random numbers. It facilitates testing and demonstrating ChartDirector programs without needing a real...

  • RanTable.RanTable
    ChartDirector Ver 4.1 (C++ Edition) RanTable .RanTable Usage RanTable(int seed, int noOfCols, int noOfRows); Description Creates a RanTable object. Arguments Argument Default Description seed...

  • RanTable.selectDate
    ChartDirector Ver 4.1 (C++ Edition) RanTable .selectDate Usage int selectDate(int colNo, double minDate, double maxDate); Description Selects the rows within a certain date range. After executing...

  • RanTable.setCol
    ChartDirector Ver 4.1 (C++ Edition) RanTable .setCol Usage void setCol(int colNo, double minValue, double maxValue); Description Fill the given column in the RanTable with random numbers in the given...

  • RanTable.setCol2
    ChartDirector Ver 4.1 (C++ Edition) RanTable .setCol2 Usage void setCol(int colNo, double startValue, double minDelta, double maxDelta, double lowerLimit = -1E+308, double upperLimit = 1E+308);...

  • RanTable.setDateCol
    ChartDirector Ver 4.1 (C++ Edition) RanTable .setDateCol Usage void setDateCol(int i, double startTime, double tickInc, bool weekDayOnly = false); Description Fill the given column in the RanTable...

  • RanTable.setHLOCCols
    ChartDirector Ver 4.1 (C++ Edition) RanTable .setHLOCCols Usage void setHLOCCols(int i, double startValue, double minDelta, double maxDelta, double lowerLimit = 0, double upperLimit = 1E+308) ;...

  • Realtime Charts
    ChartDirector Ver 4.1 (C++ Edition) Realtime Charts This section describes how to use ChartDirector to create realtime charts. In this section Realtime Charts in ChartDirector Description of the...

  • Realtime Chart Demonstration
    ChartDirector Ver 4.1 (C++ Edition) Realtime Chart Demonstration This sample program demonstrates a realtime chart with configurable chart update rate and with custom realtime information displayed...

  • Realtime Charts in ChartDirector
    ChartDirector Ver 4.1 (C++ Edition) Realtime Charts in ChartDirector In ChartDirector, a realtime chart is achieved by simply redrawing the chart periodically. Typically, a data buffer is used to...

  • Re-Sampling Filters
    ChartDirector Ver 4.1 (C++ Edition) Re-Sampling Filters A number of low level ChartDirector graphics primitives using the DrawArea object involve moving some or all pixels by a fractional offset. For...

  • Simple Rose Chart
    ChartDirector Ver 4.1 (C++ Edition) Simple Rose Chart This example demonstrates how to create a rose chart. A rose chart is basically a polar chart with sectors of variable radius. This can be...

  • Rotated Area Chart
    ChartDirector Ver 4.1 (C++ Edition) Rotated Area Chart This example demonstrates swapping the x and y axes to produce an rotated area chart in which the area goes from left to right (instead of...

  • Rotated Line Chart
    ChartDirector Ver 4.1 (C++ Edition) Rotated Line Chart This example demonstrates swapping the x and y axes to produce a rotated line chart in which the line goes from top to bottom (instead of left...

  • Round Meter
    ChartDirector Ver 4.1 (C++ Edition) Round Meter This example demonstrates a round meter. This example is similar to the Semi-Circle Meter example, but with the angular range set to much wider. There...

  • Scatter Chart
    ChartDirector Ver 4.1 (C++ Edition) Scatter Chart This example demonstrates a scatter chart created using XYChart.addScatterLayer . Source Code Listing [The following code is available in...

  • Scatter/Bubble/Vector Charts
    ChartDirector Ver 4.1 (C++ Edition) Scatter/Bubble/Vector Charts Title Description Scatter Chart Demonstrates a scatter chart created using XYChart.addScatterLayer . Built-In Symbols Demonstrates the...

  • Custom Scatter Labels
    ChartDirector Ver 4.1 (C++ Edition) Custom Scatter Labels This example demonstrates adding custom labels to data points. The red circles in this example comes from a scatter layer created using...

  • ScatterLayer
    ChartDirector Ver 4.1 (C++ Edition) ScatterLayer The ScatterLayer class represents scatter layers. ScatterLayer is a subclass of LineLayer . ScatterLayer objects are created by using...

  • Custom Scatter Symbols
    ChartDirector Ver 4.1 (C++ Edition) Custom Scatter Symbols This example demonstrates using external image files as scatter symbols. The chart in this example is created as 5 scatter layers using...

  • Scatter Trend Chart
    ChartDirector Ver 4.1 (C++ Edition) Scatter Trend Chart This example demonstrates linear regression trend line fitting together with scatter layers. The chart in this example composed of four layers...

  • Sector.getImageCoor
    ChartDirector Ver 4.1 (C++ Edition) Sector .getImageCoor Usage const char *getImageCoor(int offsetX = 0, int offsetY = 0); Description Gets the image map coordinates of the sector as HTML image map...

  • Sector.getLabelCoor
    ChartDirector Ver 4.1 (C++ Edition) Sector .getLabelCoor Usage const char *getLabelCoor(int offsetX = 0, int offsetY = 0); Description Gets the image map coordinates of the sector label as HTML image...

  • Sector
    ChartDirector Ver 4.1 (C++ Edition) Sector The Sector class represents sectors. The Sector object is obtained using PieChart.sector . Method Inherited Description setExplode (Self) Explode the...

  • Sector.setColor
    ChartDirector Ver 4.1 (C++ Edition) Sector .setColor Usage void setColor(int color, int edgeColor = -1, int joinLineColor = -1); Description Sets the fill color, edge color and join line color of the...

  • Sector.setExplode
    ChartDirector Ver 4.1 (C++ Edition) Sector .setExplode Usage void setExplode(int distance = -1); Description Explode the sector. Arguments Argument Default Description distance -1 The explosion...

  • Sector.setJoinLine
    ChartDirector Ver 4.1 (C++ Edition) Sector .setJoinLine Usage void setJoinLine(int joinLineColor, int joinLineWidth = 1); Description Sets the color and width of the join line used to connect the...

  • Sector.setLabelFormat
    ChartDirector Ver 4.1 (C++ Edition) Sector .setLabelFormat Usage void setLabelFormat(const char *formatString); Description Sets the format of the sector label. To set the label format for all...

  • Sector.setLabelLayout
    ChartDirector Ver 4.1 (C++ Edition) Sector .setLabelLayout Usage void setLabelLayout(int layoutMethod, int pos = -1); Description Sets the layout method and location of the sector label. To set the...

  • Sector.setLabelPos
    ChartDirector Ver 4.1 (C++ Edition) Sector .setLabelPos Usage void setLabelPos(int pos, int joinLineColor = -1); Description Sets the circular label layout method, and configure the join lines used...

  • Sector.setLabelStyle
    ChartDirector Ver 4.1 (C++ Edition) Sector .setLabelStyle Usage TextBox *setLabelStyle(const char *font = 0, double fontSize = 8, int fontColor = TextColor); Description Sets the style used to draw...

  • Semi-Circle Meter
    ChartDirector Ver 4.1 (C++ Edition) Semi-Circle Meter This example demonstrates a simple half circle angular meter. A basic angular meter can be created using the following steps: Create an...

  • 3D Shadow Mode
    ChartDirector Ver 4.1 (C++ Edition) 3D Shadow Mode          This example demonstrates an alternative 3D drawing method that uses shadows. The standard way to draw a pie...

  • Shape Specification
    ChartDirector Ver 4.1 (C++ Edition) Shape Specification Several ChartDirector API accept shape specification as arguments. For example, BarLayer.setBarShape and BarLayer.setBarShape2 can be used to...

  • Side Label Layout
    ChartDirector Ver 4.1 (C++ Edition) Side Label Layout This method demonstrates the "side label layout" method for positioning the sector labels. With "side label layout", the sector labels are...

  • Simple Area Chart
    ChartDirector Ver 4.1 (C++ Edition) Simple Area Chart This example demonstrates the basic steps in creating area charts. Create an XYChart object using XYChart.XYChart . Specify the plot area of the...

  • Simple Bar Chart
    ChartDirector Ver 4.1 (C++ Edition) Simple Bar Chart This example demonstrates the basic steps in creating bar charts. Create an XYChart object using XYChart.XYChart . Specify the plot area of the...

  • Simple Line Chart
    ChartDirector Ver 4.1 (C++ Edition) Simple Line Chart This example demonstrates the basic steps in creating line charts. Create an XYChart object using XYChart.XYChart . Specify the plot area of the...

  • Simple Pie Chart
    ChartDirector Ver 4.1 (C++ Edition) Simple Pie Chart This example demonstrates the basic steps in creating pie charts. Create a pie chart object using PieChart.PieChart . Specify the center and...

  • Simple Radar Chart
    ChartDirector Ver 4.1 (C++ Edition) Simple Radar Chart This example demonstrates the basic steps in creating radar charts. Create a PolarChart object using PolarChart.PolarChart . Specify the polar...

  • Pie with Small Sectors
    ChartDirector Ver 4.1 (C++ Edition) Pie with Small Sectors This example demonstrates how "side label layout" can avoid sector labels from overlapping. It also demonstrates metallic background colors,...

  • Soft Bar Shading
    ChartDirector Ver 4.1 (C++ Edition) Soft Bar Shading This example demonstrates using soft lighting effects for bars and gradient color for plot area background. It also demonstrates putting axis...

  • Soft Multi-Bar Chart
    ChartDirector Ver 4.1 (C++ Edition) Soft Multi-Bar Chart This example demonstrates a multi-bar chart with soft lighting effects for bars and gradient color for plot area background. Soft lighting is...

  • SplineLayer
    ChartDirector Ver 4.1 (C++ Edition) SplineLayer The SplineLayer class represents spline layers. SplineLayer is a subclass of Layer . In the current version of ChartDirector, SplineLayer is...

  • SplineLayer.setTension
    ChartDirector Ver 4.1 (C++ Edition) SplineLayer .setTension Usage void setTension(double tension); Description Sets the tension to use when computing the spline curve. The tension parameter should be...

  • Spline Line Chart
    ChartDirector Ver 4.1 (C++ Edition) Spline Line Chart This example demonstrates using spline curves to join data points, title with soft lighting effect, as well as a number of chart formatting...

  • Square Angular Meters
    ChartDirector Ver 4.1 (C++ Edition) Square Angular Meters          This example demonstrates angular meters of which the pointers are pivoted at the corners of squares....

  • Stacked Area Chart
    ChartDirector Ver 4.1 (C++ Edition) Stacked Area Chart This example demonstrates using multiple data sets to create stacked area chart. The key features demonstrated in this example are: Add a...

  • Stacked Bar Chart
    ChartDirector Ver 4.1 (C++ Edition) Stacked Bar Chart This example demonstrates creating a stacked bar chart, completed with bar labels and legend box. The key features demonstrated in this example...

  • Stacked Radar Chart
    ChartDirector Ver 4.1 (C++ Edition) Stacked Radar Chart This example demonstrates a stacked radar chart. This example is similar to the previous Multi-Radar Chart example, except the data are stacked...

  • Stacked Rose Chart
    ChartDirector Ver 4.1 (C++ Edition) Stacked Rose Chart This example demonstrates how to create a stacked rose chart. This example employs the same approach as the previous Simple Rose Chart example....

  • Step Line Chart
    ChartDirector Ver 4.1 (C++ Edition) Step Line Chart This example demonstrates joining data points with steps. It also demonstrates irregularly spaced data points on an auto-scaled true date/time...

  • StepLineLayer
    ChartDirector Ver 4.1 (C++ Edition) StepLineLayer The StepLineLayer class represents step line layers. StepLineLayer is a subclass of LineLayer . StepLineLayer objects are created by using...

  • StepLineLayer.setAlignment
    ChartDirector Ver 4.1 (C++ Edition) StepLineLayer .setAlignment Usage void setAlignment(int a); Description Sets the alignment of the steps relative to the data points. Arguments Argument Default...

  • StringArray
    ChartDirector Ver 4.1 (C++ Edition) StringArray The StringArray class represents arrays of strings (const char *). It encapsulates a pointer to a C array of "const char *" and the size of the array...

  • StringArray.StringArray
    ChartDirector Ver 4.1 (C++ Edition) StringArray .StringArray Usage StringArray(const char * const *data, int len); Description The constructor of the StringArray class. Arguments Argument Default...

  • Symbol Line Chart
    ChartDirector Ver 4.1 (C++ Edition) Symbol Line Chart This example demonstrates using symbols to represent data points, and putting data labels on top of the symbols. Note that in this example, the...

  • Symbol Line Chart (2)
    ChartDirector Ver 4.1 (C++ Edition) Symbol Line Chart (2) This example demonstrates using symbols to represent data points and using gradient color for plot area background. The gradient plot area...

  • TCHARtoUTF8.const_char_ptr
    ChartDirector Ver 4.1 (C++ Edition) TCHARtoUTF8 .const_char_ptr Usage operator const char*(); Description Operator for implicit casting to const char*. Arguments None Return Value A UTF8 string...

  • TCHARtoUTF8
    ChartDirector Ver 4.1 (C++ Edition) TCHARtoUTF8 ChartDirector always uses UTF8 strings in its API. MFC, however, uses TCHAR strings, which can be MBCS strings or 2-byte UNICODE strings, depending on...

  • TCHARtoUTF8.TCHARtoUTF8
    ChartDirector Ver 4.1 (C++ Edition) TCHARtoUTF8 .TCHARtoUTF8 Usage TCHARtoUTF8(const TCHAR *t_string); Description Constructs a TCHARtoUTF8 object. Arguments Argument Default Description t_string...

  • TCHARtoUTF8.to_char_ptr
    ChartDirector Ver 4.1 (C++ Edition) TCHARtoUTF8 .to_char_ptr Usage operator const char*(); Description Operator for implicit casting to const char*. Arguments None Return Value A UTF8 string...

  • TextBox
    ChartDirector Ver 4.1 (C++ Edition) TextBox The TextBox class represents text boxes. It is a subclass of Box . Method Inherited Description setText (Self) Sets the text to be shown in the text box....

  • TextBox.setAlignment
    ChartDirector Ver 4.1 (C++ Edition) TextBox .setAlignment Usage void setAlignment(int a); Description Sets the alignment of the text relative to the container box. Arguments Argument Default...

  • TextBox.setFontAngle
    ChartDirector Ver 4.1 (C++ Edition) TextBox .setFontAngle Usage void setFontAngle(double angle, bool vertical = false); Description Sets the rotation angle and layout direction of the text. See Font...

  • TextBox.setFontColor
    ChartDirector Ver 4.1 (C++ Edition) TextBox .setFontColor Usage void setFontColor(int color); Description Sets the color of the text. If this method is not called, TextColor will be used to draw the...

  • TextBox.setFontSize
    ChartDirector Ver 4.1 (C++ Edition) TextBox .setFontSize Usage void setFontSize(double fontHeight, double fontWidth = 0); Description Sets the font height and width in points. See Font Specification...

  • TextBox.setFontStyle
    ChartDirector Ver 4.1 (C++ Edition) TextBox .setFontStyle Usage void setFontStyle(const char *font, int fontIndex = 0); Description Sets the font of the text by specifying the file that contains the...

  • TextBox.setHeight
    ChartDirector Ver 4.1 (C++ Edition) TextBox .setHeight Usage void setHeight(int height); Description Sets the height of the text box. By default, the height of the text box is automatically...

  • TextBox.setMargin
    ChartDirector Ver 4.1 (C++ Edition) TextBox .setMargin Usage void setMargin(int m); Description Sets all margins (left, right, top, and bottom) of the text box to the same value. The margins of a...

  • TextBox.setMargin2
    ChartDirector Ver 4.1 (C++ Edition) TextBox .setMargin2 Usage void setMargin(int leftMargin, int rightMargin, int topMargin, int bottomMargin); Description Sets the margins of the text box in pixels....

  • TextBox.setMaxWidth
    ChartDirector Ver 4.1 (C++ Edition) TextBox .setMaxWidth Usage void setMaxWidth(int maxWidth); Description Sets the maximum width of the text box and wraps text if necessary. By default, the width of...

  • TextBox.setText
    ChartDirector Ver 4.1 (C++ Edition) TextBox .setText Usage void setText(const char *text); Description Sets the text to be shown in the text box. See ChartDirector Mark Up Language on how to embed...

  • TextBox.setTruncate
    ChartDirector Ver 4.1 (C++ Edition) TextBox .setTruncate Usage void void setTruncate(int maxWidth, int maxLines = 1); Description Sets the maximum number of lines in the text box, and truncate the...

  • TextBox.setWidth
    ChartDirector Ver 4.1 (C++ Edition) TextBox .setWidth Usage void setWidth(int width); Description Sets the width of the text box and wraps text if necessary. By default, the width of the text box is...

  • Texture Donut Chart
    ChartDirector Ver 4.1 (C++ Edition) Texture Donut Chart This example demonstrates wooden, rocky and marble texture effects by using pattern colors to load image patterns. In ChartDirector, metallic...

  • 3D Angle
    ChartDirector Ver 4.1 (C++ Edition) 3D Angle                   This example demonstrates the effects of different 3D angles. ChartDirector...

  • 3D Area Chart
    ChartDirector Ver 4.1 (C++ Edition) 3D Area Chart This example demonstrates a 3D area chart configured using Layer.set3D . Source Code Listing [The following code is available in...

  • 3D Bar Chart
    ChartDirector Ver 4.1 (C++ Edition) 3D Bar Chart This example demonstrates using Layer.set3D to set the bars to 3D style. Source Code Listing [The following code is available in "cppdemo/threedbar"....

  • 3D Depth
    ChartDirector Ver 4.1 (C++ Edition) 3D Depth             This example demonstrates the effects of different 3D depths. ChartDirector allows the 3D depth and...

  • 3D Line Chart
    ChartDirector Ver 4.1 (C++ Edition) 3D Line Chart This example demonstrates setting the line to 3D by using Layer.set3D . Source Code Listing [The following code is available in "cppdemo/threedline"....

  • 3D Pie Chart
    ChartDirector Ver 4.1 (C++ Edition) 3D Pie Chart This example extends the Simple Pie Chart example by drawing the chart in 3D, adding a title, and exploding a sector. Add a title to the chart using...

  • 3D Stacked Area Chart
    ChartDirector Ver 4.1 (C++ Edition) 3D Stacked Area Chart This example demonstrates creating a stacked area chart with 3D effects. The key features demonstrated in this example are: Add a stacked...

  • Tick Density
    ChartDirector Ver 4.1 (C++ Edition) Tick Density    This example demonstrates how to control the axis tick density in auto-scaling. By default, in auto-scaling, ChartDirector automatically...

  • Trending and Curve Fitting
    ChartDirector Ver 4.1 (C++ Edition) Trending and Curve Fitting Title Description Trend Line Chart Demonstrates linear regression trend line fitting. Also demonstrates rotating the x-axis labels by 90...

  • TrendLayer.addConfidenceBand
    ChartDirector Ver 4.1 (C++ Edition) TrendLayer .addConfidenceBand Usage void addConfidenceBand(double confidence, int upperFillColor, int upperEdgeColor = Transparent, int upperLineWidth = 1, int...

  • TrendLayer.addPredictionBand
    ChartDirector Ver 4.1 (C++ Edition) TrendLayer .addPredictionBand Usage void addPredictionBand(double confidence, int upperFillColor, int upperEdgeColor = Transparent, int upperLineWidth = 1, int...

  • TrendLayer.getCorrelation
    ChartDirector Ver 4.1 (C++ Edition) TrendLayer .getCorrelation Usage double getCorrelation(); Description Gets the correlation coefficient of the trend line. Arguments None Return Value None © 2006...

  • TrendLayer.getIntercept
    ChartDirector Ver 4.1 (C++ Edition) TrendLayer .getIntercept Usage double getIntercept(); Description Gets the y-axis intercept of the trend line. Arguments None Return Value None © 2006 Advanced...

  • TrendLayer.getLine
    ChartDirector Ver 4.1 (C++ Edition) TrendLayer .getLine Usage LineObj *getLine(); Description Retrieves an opaque LineObj representing the trend line. The opaque LineObj is to be used in...

  • TrendLayer.getSlope
    ChartDirector Ver 4.1 (C++ Edition) TrendLayer .getSlope Usage double getSlope(); Description Gets the slope of the trend line. Arguments None Return Value None © 2006 Advanced Software Engineering...

  • TrendLayer.getStdError
    ChartDirector Ver 4.1 (C++ Edition) TrendLayer .getStdError Usage double getStdError(); Description Gets the standard error of the trend line. Arguments None Return Value None © 2006 Advanced...

  • TrendLayer
    ChartDirector Ver 4.1 (C++ Edition) TrendLayer The TrendLayer class represents trend layers. TrendLayer is a subclass Layer . TrendLayer objects are created by using XYChart.addTrendLayer and...

  • TrendLayer.setImageMapWidth
    ChartDirector Ver 4.1 (C++ Edition) TrendLayer .setImageMapWidth Usage void setImageMapWidth(int width); Description Sets the effective width of the line used for producing image maps. For thin...

  • Trend Line Chart
    ChartDirector Ver 4.1 (C++ Edition) Trend Line Chart This example demonstrates linear regression trend line fitting. It also demonstrates rotating the x-axis labels by 90 degrees to save axis space....

  • TTFText.draw
    ChartDirector Ver 4.1 (C++ Edition) TTFText .draw Usage void draw(int x, int y, int color, int alignment = TopLeft) const; Description Draws the text block. Arguments Argument Default Description x...

  • TTFText.getHeight
    ChartDirector Ver 4.1 (C++ Edition) TTFText .getHeight Usage int getHeight() const; Description Gets the height of the text block. Arguments None Return Value The height of the text block in pixels....

  • TTFText.getLineDistance
    ChartDirector Ver 4.1 (C++ Edition) TTFText .getLineDistance Usage int getLineDistance() const; Description Gets the distance between two lines in the text block. Arguments None Return Value The...

  • TTFText.getLineHeight
    ChartDirector Ver 4.1 (C++ Edition) TTFText .getLineHeight Usage int getLineHeight() const; Description Gets the height of a typical line in the text block. Arguments None Return Value The height of...

  • TTFText.getWidth
    ChartDirector Ver 4.1 (C++ Edition) TTFText .getWidth Usage int getWidth() const; Description Gets the width of the text block. Arguments None Return Value The width of the text block in pixels. ©...

  • TTFText
    ChartDirector Ver 4.1 (C++ Edition) TTFText The TTFText class represents text blocks. TTFText objects are created using DrawArea.text3 or DrawArea.text4 . Method Inherited Description getWidth (Self)...

  • UTF8toTCHAR.const_TCHAR_ptr
    ChartDirector Ver 4.1 (C++ Edition) UTF8toTCHAR .const_TCHAR_ptr Usage operator const TCHAR*(); Description Operator for implicit casting to TCHAR*. Arguments None Return Value A TCHAR string...

  • UTF8toTCHAR
    ChartDirector Ver 4.1 (C++ Edition) UTF8toTCHAR ChartDirector always uses UTF8 strings in its API. MFC, however, uses TCHAR strings, which can be MBCS strings or 2-byte UNICODE strings, depending on...

  • UTF8toTCHAR.to_tchar_ptr
    ChartDirector Ver 4.1 (C++ Edition) UTF8toTCHAR .to_tchar_ptr Usage operator const TCHAR*(); Description Operator for implicit casting to TCHAR*. Arguments None Return Value A TCHAR string converted...

  • UTF8toTCHAR.UTF8toTCHAR
    ChartDirector Ver 4.1 (C++ Edition) UTF8toTCHAR .UTF8toTCHAR Usage UTF8toTCHAR(const char *utf8_string); Description Constructs a UTF8toTCHAR object. Arguments Argument Default Description...

  • Vector Chart
    ChartDirector Ver 4.1 (C++ Edition) Vector Chart This example demonstrates a vector chart. A vector chart is like a scatter chart, but the symbols are arrows which can be of arbitrary lengths...

  • VectorLayer
    ChartDirector Ver 4.1 (C++ Edition) VectorLayer The VectorLayer class represents vector layers. VectorLayer is a subclass of Layer . VectorLayer objects are created by using XYChart.addVectorLayer ....

  • VectorLayer.setArrowAlignment
    ChartDirector Ver 4.1 (C++ Edition) VectorLayer .setArrowAlignment Usage void setArrowAlignment(int alignment); Description Sets the alignment of the vector relative to the data point. Arguments...

  • VectorLayer.setArrowHead
    ChartDirector Ver 4.1 (C++ Edition) VectorLayer .setArrowHead Usage void setArrowHead(int width, int height = 0); Description Sets the size of the arrow head. Arguments Argument Default Description...

  • VectorLayer.setArrowHead2
    ChartDirector Ver 4.1 (C++ Edition) VectorLayer .setArrowHead2 Usage void setArrowHead(IntArray polygon); Description Sets a custom shape to be used as the arrow head. The custom shape is specified...

  • VectorLayer.setArrowStem
    ChartDirector Ver 4.1 (C++ Edition) VectorLayer .setArrowStem Usage void setArrowStem(IntArray polygon); Description Sets a custom shape to be used as the arrow stem. By default, the arrow stem is...

  • VectorLayer.setIconSize
    ChartDirector Ver 4.1 (C++ Edition) VectorLayer .setIconSize Usage void setIconSize(int height, int width = 0); Description Sets the size of the icon to be used in legend box. By default, if a legend...

  • VectorLayer.setVector
    ChartDirector Ver 4.1 (C++ Edition) VectorLayer .setVector Usage void setVector(DoubleArray lengths, DoubleArray directions, int lengthScale = PixelScale); Description Sets the lengths and directions...

  • ViewPortManager.canZoomIn
    ChartDirector Ver 4.1 (C++ Edition) ViewPortManager .canZoomIn Usage bool canZoomIn(int zoomDirection); Description Checks if it is possible to zoom in further at a certain direction without...

  • ViewPortManager.canZoomOut
    ChartDirector Ver 4.1 (C++ Edition) ViewPortManager .canZoomOut Usage bool canZoomOut(int zoomDirection); Description Checks if it is possible to zoom out further at a certain direction without...

  • ViewPortManager.dragTo
    ChartDirector Ver 4.1 (C++ Edition) ViewPortManager .dragTo Usage bool dragTo(int scrollDirection, int deltaX, int deltaY); Description Scrolls the view port to reflect dragging of the underlying...

  • ViewPortManager.getPlotAreaHeight
    ChartDirector Ver 4.1 (C++ Edition) ViewPortManager .getPlotAreaHeight Usage int getPlotAreaHeight(); Description Gets the height of the plot area in pixels. Arguments None Return Value The height of...

  • ViewPortManager.getPlotAreaLeft
    ChartDirector Ver 4.1 (C++ Edition) ViewPortManager .getPlotAreaLeft Usage int getPlotAreaLeft(); Description Gets the x-coordinate of the left side of the plot area in pixels. Arguments None Return...

  • ViewPortManager.getPlotAreaTop
    ChartDirector Ver 4.1 (C++ Edition) ViewPortManager .getPlotAreaTop Usage int getPlotAreaTop(); Description Gets the y-coordinate of the top side of the plot area in pixels. Arguments None Return...

  • ViewPortManager.getPlotAreaWidth
    ChartDirector Ver 4.1 (C++ Edition) ViewPortManager .getPlotAreaWidth Usage int getPlotAreaWidth(); Description Gets the width of the plot area in pixels. Arguments None Return Value The width of the...

  • ViewPortManager.getViewPortHeight
    ChartDirector Ver 4.1 (C++ Edition) ViewPortManager .getViewPortHeight Usage double getViewPortHeight(); Description Gets the height of the view port. The view port height is expressed as a fraction...

  • ViewPortManager.getViewPortLeft
    ChartDirector Ver 4.1 (C++ Edition) ViewPortManager .getViewPortLeft Usage double getViewPortLeft(); Description Gets the position of the left side of the view port. The position of the view port...

  • ViewPortManager.getViewPortTop
    ChartDirector Ver 4.1 (C++ Edition) ViewPortManager .getViewPortTop Usage double getViewPortTop(); Description Gets the position of the top side of the view port. The position of the view port top...

  • ViewPortManager.getViewPortWidth
    ChartDirector Ver 4.1 (C++ Edition) ViewPortManager .getViewPortWidth Usage double getViewPortWidth(); Description Gets the width of the view port. The view port width is expressed as a fraction of...

  • ViewPortManager.getZoomInHeightLimit
    ChartDirector Ver 4.1 (C++ Edition) ViewPortManager .getZoomInHeightLimit Usage double getZoomInHeightLimit(); Description Gets the view port height at maximum zoom in for mouse zoom in actions....

  • ViewPortManager.getZoomInWidthLimit
    ChartDirector Ver 4.1 (C++ Edition) ViewPortManager .getZoomInWidthLimit Usage double getZoomInWidthLimit(); Description Gets the view port width at maximum zoom in for mouse zoom in actions....

  • ViewPortManager.getZoomOutHeightLimit
    ChartDirector Ver 4.1 (C++ Edition) ViewPortManager .getZoomOutHeightLimit Usage double getZoomOutHeightLimit(); Description Gets the view port height at maximum zoom out for mouse zoom out actions....

  • ViewPortManager.getZoomOutWidthLimit
    ChartDirector Ver 4.1 (C++ Edition) ViewPortManager .getZoomOutWidthLimit Usage double getZoomOutWidthLimit(); Description Gets the view port width at maximum zoom out for mouse zoom out actions....

  • ViewPortManager
    ChartDirector Ver 4.1 (C++ Edition) ViewPortManager A view port can be imagined as a rectangular window of an underlying rectangular surface. For example, a chart that has 10 years of data can be...

  • ViewPortManager.inPlotArea
    ChartDirector Ver 4.1 (C++ Edition) ViewPortManager .inPlotArea Usage bool inPlotArea(int x, int y); Description Determines if a given point is within the plot area. Arguments Argument Default...

  • ViewPortManager.setChartMetrics
    ChartDirector Ver 4.1 (C++ Edition) ViewPortManager .setChartMetrics Usage void setChartMetrics(const char *metrics); Description Sets the chart metrics to the ViewPortManager so it knows the...

  • ViewPortManager.setViewPortHeight
    ChartDirector Ver 4.1 (C++ Edition) ViewPortManager .setViewPortHeight Usage void setViewPortHeight(double height); Description Sets the height of the view port. The view port height is expressed as...

  • ViewPortManager.setViewPortLeft
    ChartDirector Ver 4.1 (C++ Edition) ViewPortManager .setViewPortLeft Usage void setViewPortLeft(double left); Description Sets the position of the left side of the view port. The position of the view...

  • ViewPortManager.setViewPortTop
    ChartDirector Ver 4.1 (C++ Edition) ViewPortManager .setViewPortTop Usage void setViewPortTop(double top); Description Sets the position of the top side of the view port. The position of the view...

  • ViewPortManager.setViewPortWidth
    ChartDirector Ver 4.1 (C++ Edition) ViewPortManager .setViewPortWidth Usage void setViewPortWidth(double width); Description Sets the width of the view port. The view port width is expressed as a...

  • ViewPortManager.setZoomInHeightLimit
    ChartDirector Ver 4.1 (C++ Edition) ViewPortManager .setZoomInHeightLimit Usage void setZoomInHeightLimit(double height); Description Sets the view port height at maximum zoom in. In many...

  • ViewPortManager.setZoomInWidthLimit
    ChartDirector Ver 4.1 (C++ Edition) ViewPortManager .setZoomInWidthLimit Usage void setZoomInWidthLimit(double width); Description Sets the view port width at maximum zoom in. In many applications,...

  • ViewPortManager.setZoomOutHeightLimit
    ChartDirector Ver 4.1 (C++ Edition) ViewPortManager .setZoomOutHeightLimit Usage void setZoomOutHeightLimit(double height); Description Sets the view port height at maximum zoom out. This method...

  • ViewPortManager.setZoomOutWidthLimit
    ChartDirector Ver 4.1 (C++ Edition) ViewPortManager .setZoomOutWidthLimit Usage void setZoomOutWidthLimit(double width); Description Sets the view port width at maximum zoom out. This method...

  • ViewPortManager.startDrag
    ChartDirector Ver 4.1 (C++ Edition) ViewPortManager .startDrag Usage void startDrag(); Description Takes a snapshot of the view port to prepare for dragging. This method must be called before calling...

  • ViewPortManager.validateViewPort
    ChartDirector Ver 4.1 (C++ Edition) ViewPortManager .validateViewPort Usage void validateViewPort(); Description Ensures the view port left, top, width and height are within valid ranges and adjusts...

  • ViewPortManager.zoomAt
    ChartDirector Ver 4.1 (C++ Edition) ViewPortManager .zoomAt Usage bool zoomAt(int zoomDirection, int x, int y, double zoomRatio); Description Zooms in/out around a certain point. This method adjusts...

  • ViewPortManager.zoomTo
    ChartDirector Ver 4.1 (C++ Edition) ViewPortManager .zoomTo Usage bool zoomTo(int zoomDirection, int x1, int y1, int x2, int y2); Description Zooms to the selected rectangular region. This method...

  • Vertical Linear Meter
    ChartDirector Ver 4.1 (C++ Edition) Vertical Linear Meter This example demonstrates a simple vertical linear meter. A basic linear meter can be created using the following steps: Create a LinearMeter...

  • Waterfall Chart
    ChartDirector Ver 4.1 (C++ Edition) Waterfall Chart This example demonstrates creating a multi-color waterfall chart. This chart is created as a multi-color box-whisker layer using...

  • What's Next
    ChartDirector Ver 4.1 (C++ Edition) What's Next This documentation introduces ChartDirector features by using a sequence of examples. In the following sections, you will find plenty of examples for...

  • Wide Angular Meters
    ChartDirector Ver 4.1 (C++ Edition) Wide Angular Meters                This example demonstrates angular meters of which the width is large compared...

  • XYChart.addAreaLayer
    ChartDirector Ver 4.1 (C++ Edition) XYChart .addAreaLayer Usage AreaLayer *addAreaLayer(DoubleArray data, int color = -1, const char *name = 0, int depth = 0); Description Adds an area chart layer to...

  • XYChart.addAreaLayer2
    ChartDirector Ver 4.1 (C++ Edition) XYChart .addAreaLayer2 Usage AreaLayer *addAreaLayer(int dataCombineMethod = Stack, int depth = 0); Description Adds an empty area chart layer to the XYChart. This...

  • XYChart.addAxis
    ChartDirector Ver 4.1 (C++ Edition) XYChart .addAxis Usage Axis *addAxis(int align, int offset); Description Adds an additional axis to the chart. By default, ChartDirector XY charts have 2 x-axes...

  • XYChart.addBarLayer
    ChartDirector Ver 4.1 (C++ Edition) XYChart .addBarLayer Usage BarLayer *addBarLayer(DoubleArray data, int color = -1, const char *name = 0, int depth = 0); Description Adds a bar layer to the...

  • XYChart.addBarLayer2
    ChartDirector Ver 4.1 (C++ Edition) XYChart .addBarLayer2 Usage BarLayer *addBarLayer(int dataCombineMethod = Side, int depth = 0); Description Adds an empty bar layer to the XYChart. This method is...

  • XYChart.addBarLayer3
    ChartDirector Ver 4.1 (C++ Edition) XYChart .addBarLayer3 Usage BarLayer *addBarLayer(DoubleArray data, IntArray colors, StringArray names = StringArray(), int depth = 0); Description Adds a...

  • XYChart.addBoxLayer
    ChartDirector Ver 4.1 (C++ Edition) XYChart .addBoxLayer Usage BoxWhiskerLayer *addBoxLayer(DoubleArray boxTop, DoubleArray boxBottom, int color = -1, const char *name = 0); Description Adds a...

  • XYChart.addBoxWhiskerLayer
    ChartDirector Ver 4.1 (C++ Edition) XYChart .addBoxWhiskerLayer Usage BoxWhiskerLayer *addBoxWhiskerLayer(DoubleArray boxTop, DoubleArray boxBottom, DoubleArray maxData = DoubleArray(), DoubleArray...

  • XYChart.addBoxWhiskerLayer2
    ChartDirector Ver 4.1 (C++ Edition) XYChart .addBoxWhiskerLayer2 Usage BoxWhiskerLayer *addBoxWhiskerLayer2(DoubleArray boxTop, DoubleArray boxBottom, DoubleArray maxData = DoubleArray(), DoubleArray...

  • XYChart.addCandleStickLayer
    ChartDirector Ver 4.1 (C++ Edition) XYChart .addCandleStickLayer Usage CandleStickLayer *addCandleStickLayer(DoubleArray highData, DoubleArray lowData, DoubleArray openData, DoubleArray closeData,...

  • XYChart.addHLOCLayer
    ChartDirector Ver 4.1 (C++ Edition) XYChart .addHLOCLayer Usage HLOCLayer *addHLOCLayer(DoubleArray highData, DoubleArray lowData, DoubleArray openData = DoubleArray(), DoubleArray closeData =...

  • XYChart.addHLOCLayer2
    ChartDirector Ver 4.1 (C++ Edition) XYChart .addHLOCLayer2 Usage HLOCLayer *addHLOCLayer(); Description Adds an empty high-low-open-close (HLOC) layer to the XYChart. Arguments None Return Value A...

  • XYChart.addHLOCLayer3
    ChartDirector Ver 4.1 (C++ Edition) XYChart .addHLOCLayer3 Usage HLOCLayer *addHLOCLayer(DoubleArray highData, DoubleArray lowData, DoubleArray openData, DoubleArray closeData, int upColor, int...

  • XYChart.addInterLineLayer
    ChartDirector Ver 4.1 (C++ Edition) XYChart .addInterLineLayer Usage InterLineLayer *addInterLineLayer(LineObj *line1, LineObj *line2, int color12, int color21 = -1); Description Adds an inter-line...

  • XYChart.addLineLayer
    ChartDirector Ver 4.1 (C++ Edition) XYChart .addLineLayer Usage LineLayer *addLineLayer(DoubleArray data, int color = -1, const char *name = 0, int depth = 0); Description Adds a line layer to the...

  • XYChart.addLineLayer2
    ChartDirector Ver 4.1 (C++ Edition) XYChart .addLineLayer2 Usage LineLayer *addLineLayer(int dataCombineMethod = Overlay, int depth = 0); Description Adds an empty line layer to the XYChart. This...

  • XYChart.addScatterLayer
    ChartDirector Ver 4.1 (C++ Edition) XYChart .addScatterLayer Usage ScatterLayer *addScatterLayer(DoubleArray xData, DoubleArray yData, const char *name = 0, int symbol = SquareShape, int symbolSize =...

  • XYChart.addSplineLayer
    ChartDirector Ver 4.1 (C++ Edition) XYChart .addSplineLayer Usage SplineLayer *addSplineLayer(DoubleArray data = DoubleArray(), int color = -1, const char *name = 0); Description Adds a spline layer...

  • XYChart.addStepLineLayer
    ChartDirector Ver 4.1 (C++ Edition) XYChart .addStepLineLayer Usage StepLineLayer *addStepLineLayer(DoubleArray data = DoubleArray(), int color = -1, const char *name = 0); Description Adds a step...

  • XYChart.addTrendLayer
    ChartDirector Ver 4.1 (C++ Edition) XYChart .addTrendLayer Usage TrendLayer *addTrendLayer(DoubleArray data, int color = -1, const char *name = 0, int depth = 0); Description Adds a trend chart layer...

  • XYChart.addTrendLayer2
    ChartDirector Ver 4.1 (C++ Edition) XYChart .addTrendLayer2 Usage TrendLayer *addTrendLayer(DoubleArray xData, DoubleArray yData, int color = -1, const char *name = 0, int depth = 0); Description...

  • XYChart.addVectorLayer
    ChartDirector Ver 4.1 (C++ Edition) XYChart .addVectorLayer Usage VectorLayer *addVectorLayer(DoubleArray xData, DoubleArray yData, DoubleArray lengths, DoubleArray directions, int lengthScale =...

  • XYChart.getXCoor
    ChartDirector Ver 4.1 (C++ Edition) XYChart .getXCoor Usage int getXCoor(double v) const; Description Gets the x pixel coordinate of a point given the x data value. Note: You must call...

  • XYChart.getYCoor
    ChartDirector Ver 4.1 (C++ Edition) XYChart .getYCoor Usage int getYCoor(double v, const Axis *yAxis = 0) const; Description Gets the y pixel coordinate of a point given the y data value. Note: You...

  • XYChart
    ChartDirector Ver 4.1 (C++ Edition) XYChart The XYChart class represents XY charts. The XYChart class is a subclass of BaseChart . Method Inherited Description XYChart (Self) Creates a new XYChart...

  • XYChart.setAxisAtOrigin
    ChartDirector Ver 4.1 (C++ Edition) XYChart .setAxisAtOrigin Usage void setAxisAtOrigin(int originMode = XYAxisAtOrigin, int symmetryMode = 0); Description Sets the chart into 4 quadrant mode. The...

  • XYChart.setClipping
    ChartDirector Ver 4.1 (C++ Edition) XYChart .setClipping Usage void setClipping(int margin = 0); Description Enables clipping on the plot area. In normal usage, ChartDirector will auto-scale the axis...

  • XYChart.setPlotArea
    ChartDirector Ver 4.1 (C++ Edition) XYChart .setPlotArea Usage PlotArea *setPlotArea(int x, int y, int width, int height, int bgColor = Transparent, int altBgColor = -1, int edgeColor = -1, int...

  • XYChart.setTrimData
    ChartDirector Ver 4.1 (C++ Edition) XYChart .setTrimData Usage void setTrimData(int startPos, int len = 0x7fffffff); Description Uses only a subset of the data series to draw charts. In finance...

  • XYChart.setXAxisOnTop
    ChartDirector Ver 4.1 (C++ Edition) XYChart .setXAxisOnTop Usage void setXAxisOnTop(bool b = true); Description Interchange the position of the primary x-axis and the secondary x-axis. By default,...

  • XYChart.setYAxisOnRight
    ChartDirector Ver 4.1 (C++ Edition) XYChart .setYAxisOnRight Usage void setYAxisOnRight(bool b = true); Description Interchange the position of the primary y-axis and the secondary y-axis. By...

  • XYChart.swapXY
    ChartDirector Ver 4.1 (C++ Edition) XYChart .swapXY Usage void swapXY(bool b = true); Description Swap the position of the x and y axes, so the x-axes will become vertical, and the y-axes will become...

  • XYChart.syncYAxis
    ChartDirector Ver 4.1 (C++ Edition) XYChart .syncYAxis Usage void syncYAxis(double slope = 1, double intercept = 0); Description Sets a linear formula to synchronize the secondary y-axis scale to the...

  • XYChart.xAxis
    ChartDirector Ver 4.1 (C++ Edition) XYChart .xAxis Usage Axis *xAxis(); Description Retrieves the Axis object representing primary x-axis of the XYChart. By default, the primary x-axis is the x-axis...

  • XYChart.xAxis2
    ChartDirector Ver 4.1 (C++ Edition) XYChart .xAxis2 Usage Axis *xAxis2(); Description Retrieves the Axis object representing secondary x-axis of the XYChart. By default, the primary x-axis is the...

  • XYChart.XYChart
    ChartDirector Ver 4.1 (C++ Edition) XYChart .XYChart Usage XYChart(int width, int height, int bgColor = BackgroundColor, int edgeColor = Transparent, int raisedEffect = 0); Description Creates a new...

  • XYChart.xZoneColor
    ChartDirector Ver 4.1 (C++ Edition) XYChart .xZoneColor Usage int xZoneColor(double threshold, int belowColor, int aboveColor); Description Creates a x-zone color. A x-zone will change from one color...

  • XYChart.yAxis
    ChartDirector Ver 4.1 (C++ Edition) XYChart .yAxis Usage Axis *yAxis(); Description Retrieves the Axis object representing the primary y-axis of the XYChart. By default, the primary y-axis is the...

  • XYChart.yAxis2
    ChartDirector Ver 4.1 (C++ Edition) XYChart .yAxis2 Usage Axis *yAxis2(); Description Retrieves the Axis object representing secondary y-axis of the XYChart. By default, the primary y-axis is the...

  • XYChart.yZoneColor
    ChartDirector Ver 4.1 (C++ Edition) XYChart .yZoneColor Usage int yZoneColor(double threshold, int belowColor, int aboveColor, const Axis *yAxis = 0); Description Creates a y-zone color. A y-zone...

  • XY Charts
    ChartDirector Ver 4.1 (C++ Edition) XY Charts In this section, we will discuss how to create XY Charts using ChartDirector through a number of examples. In ChartDirector, XY Chart refers to any chart...

  • Other XY Chart Features
    ChartDirector Ver 4.1 (C++ Edition) Other XY Chart Features Title Description Marks and Zones Demonstrates adding marks and zones to the chart, and adding custom legend keys to represent the zones....

  • Arbitrary XY Line Chart
    ChartDirector Ver 4.1 (C++ Edition) Arbitrary XY Line Chart This example demonstrates drawing a line chart with arbitrary x coordinates (not increasing or decreasing in one direction), and adding...

  • X Zone Coloring
    ChartDirector Ver 4.1 (C++ Edition) X Zone Coloring This example demonstrates using x zone colors - colors that change at certain x value thresholds. In this example, a x zone colors are used as the...

  • Y Zone Coloring
    ChartDirector Ver 4.1 (C++ Edition) Y Zone Coloring This example demonstrates using y zone colors - colors that change at certain y value thresholds. In this example, a y zone color is used as the...

  • Zoomable and Scrollable Charts
    ChartDirector Ver 4.1 (C++ Edition) Zoomable and Scrollable Charts This section describes the ChartDirector Zooming and Scroll Framework for creating charts system extremely wide range of zoom ratios...

  • Zooming and Scrolling Demonstration
    ChartDirector Ver 4.1 (C++ Edition) Zooming and Scrolling Demonstration This sample program demonstrates a zoomable and scrollable chart for time based data series. The followings are the key...

  • Zooming and Scrolling Demonstration (2)
    ChartDirector Ver 4.1 (C++ Edition) Zooming and Scrolling Demonstration (2) This sample program demonstrates a general zoomable and scrollable chart. The followings are the key elements of this...

  • Zooming and Scrolling Framework
    ChartDirector Ver 4.1 (C++ Edition) Zooming and Scrolling Framework Introduction When talking about "zooming", it is common to think about zooming like a digital photograph, in which everything is...