ChartDirector 5.1 (PHP Edition)

DataSet.setDataSymbol


Usage

setDataSymbol(symbol [, size [, fillColor [, edgeColor [, lineWidth ]]]])

Description

Uses 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.

Arguments

ArgumentDefaultDescription
symbol(Mandatory)One of the predefined shape constants representing the symbol shape. See Shape Specification for the available built-in shapes.
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