ChartDirector Ver 4.1 (ColdFusion Edition)
XYChart.addVectorLayer
Usage
Description
Constant | Value | Description |
---|---|---|
PixelScale | 0 | The unit is measured in pixels. |
XAxisScale | 1 | The unit is measured in x-axis scale. |
YAxisScale | 2 | The unit is measured in y-axis scale. |
Arguments
Argument | Default | Description |
---|---|---|
xData | (Mandatory) | An array of numbers representing the x coordinates for the reference points of the vectors. |
yData | (Mandatory) | An array of numbers representing the y coordinates for the reference points of the vectors. |
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. |
lengthScale | PixelScale | The unit for the lengths, which must be one of the predefined constants in the table above. |
color | -1 | The color to draw the data points. -1 means that the color is automatically selected from the palette. |
name | "" | The name of the layer. The name will be used in the legend box, if one is available. An empty string means the layer has no name. |
Return Value