ChartDirector Ver 4.1 (ColdFusion Edition)

PolarVectorLayer.setVector


Usage

setVector(lengths, directions [, lengthScale ])

Description

Sets the lengths and directions for the vectors.

ChartDirector supports specifying lengths as pixels or in axis scale. The unit is specified by using the following predefined constants.

ConstantValueDescription
PixelScale0The unit is measured in pixels.
RadialAxisScale2 The unit is measured in the radial axis scale.

Arguments

ArgumentDefaultDescription
lengths(Mandatory)An array of numbers representing the lengths of the vectors, in unit as specified in the lengthScale argument.
directions(Mandatory)An array of numbers representing the direction of the vectors as a clockwise angle in degrees, where 0 is upward pointing direction.
lengthScalePixelScaleThe unit for the lengths, which must be one of the predefined constants in the table above.

Return Value

None