ChartDirector 7.1 (C++ Edition)

DataSet.setDataSymbol4


Usage

void setDataSymbol(IntArray shape, int size = 11, int fillColor = -1, int edgeColor = -1);

Description

Uses a custom shape 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.

Arguments

ArgumentDefaultDescription
shape(Mandatory)An array of integers representing the coordinates the polygon vertices. See Shape Specification on how the custom shape is defined.
size11The size of the symbol in pixels. By default, the width and height will be of the same size. If you want to use different size for width and height, you can pass the width and height to Chart::xySize and use the return value as the size.
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.

Return Value

None