ChartDirector 6.0 (ASP/COM/VB Edition)

VectorLayer.setVector


Usage

setVector(lengths, directions [, lengthScale ])

Description

Sets the lengths and directions for the vectors.

ChartDirector supports specifying the vector lengths and directions directly, or indirectly as the lengths and directions from the reference points to the reference end points. This is controlled by lengthScale as described in the following table.

ConstantValueDescription
PixelScale0The lengths are measured in pixels. The angles are measured clockwise in degrees, with the upwards position as 0.
XAxisScale1The lengths are measured in x-axis scale. The angles are measured clockwise in degrees, with the upwards position as 0.
YAxisScale2The lengths are measured in y-axis scale. The angles are measured clockwise in degrees, with the upwards position as 0.
EndPoints3The vector lengths and directions are measured as the lengths and directions between the reference points and the reference end points.

Arguments

ArgumentDefaultDescription
lengths(Mandatory)An array of numbers representing either the lengths of the vectors or the x coordinates of the reference end points, depending on lengthScale.
directions(Mandatory)An array of numbers representing either the directions of the vectors or the y coordinates of the reference end points, depending on lengthScale.
lengthScalePixelScaleThe method to specify vector lengths and directions, which must be one of the predefined constants in the table above.

Return Value

None