ChartDirector Ver 3.0 (C++ Edition)

DataSet.setDataSymbol


Usage

void setDataSymbol(SymbolType symbol, int size = 5, int fillColor = -1, int edgeColor = -1, int lineWidth = 1);

Description

Use one of the built-in symbols as the graphics symbol to plot the data points.

In the current version of ChartDirector, data symbols are supported only in LineLayer, SplineLayer, StepLineLayer and ScatterLayer. To use data symbols in other layer types, add a ScatterLayer on top of that layer.

The built-in symbols are specified by using the following pre-defined constants as the symbol argument.

ConstantValueSymbol at 15 pixelsSymbol at 5 pixels
SquareSymbol1
DiamondSymbol2
TriangleSymbol3
RightTriangleSymbol4
LeftTriangleSymbol5
InvertedTriangleSymbol6
CircleSymbol7
CrossSymbol8
Cross2Symbol9

Arguments

ArgumentDefaultDescription
symbol(Mandatory)One of the pre-defined symbol constants (see above) to specify the symbol to use.
size5The width and height of the symbol in pixels.
fillColor-1The color used to fill the symbol. -1 means the color of the data set will be used.
edgeColor-1The edge color used to draw the edge of the symbol. -1 means the edge color of the data set will be used.
lineWidth1The line width used for drawing the symbols.

Return Value

None