ChartDirector Ver 3.1 (PHP Edition Edition)

LineLayer.setSymbolScale


Usage

setSymbolScale(zDataX[, scaleTypeX[, zDataY[, scaleTypeY ]]])

Description

Set the size of the symbol for each data point (for creating bubble charts).

One common usage for this method is to draw circle symbols of different sizes at each data points, creating a bubble chart.

This method supports any valid data symbols. You can create bubble charts with square bubbles, or even custom data symbols. Also, this method supports independent x and y direction sizing, so you can create bubbles elliptical in shape, and use the horizontal and vertical radius to represent different data.

ChartDirector supports specifying the sizes of the symbols as pixels, or using the same scale at the x-axis or y-axis. The units are specified by using the following pre-defined constants.

ConstantValueDescription
PixelScale0The size is expressed as pixels.
XAxisScale1The size is expressed using the x-axis scale.
YAxisScale2The size is expressed using the y-axis scale.

Arguments

ArgumentDefaultDescription
zDataX(Mandatory)The sizes of the symbols at the x-axis direction, expressed using the unit defined by the scaleTypeX argument.
scaleTypeXPixelScaleThe unit for zDataX - must be one of the pre-defined constant PixelScale, XAxisScale or YAxisScale.
zDataY[Empty_Array]The sizes of the symbols at the y-axis direction, expressed using the unit defined by the scaleTypeY argument. An empty array means the sizes at the y-axis direction are the means as the sizes at the x-axis direction.
scaleTypeYPixelScaleThe unit for zDataY - must be one of the pre-defined constant PixelScale, XAxisScale or YAxisScale.

Return Value

None