Adds a vector layer to the chart.
By default, the vectors start from the given reference points and point away from it. You may use
VectorLayer.setArrowAlignment to specify other options, such as for the vectors to point into the reference points, or to have the reference points being the midpoints of 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.
Constant  Value  Description


PixelScale  0  The lengths are measured in pixels. The angles are measured clockwise in degrees, with the upwards position as 0.

XAxisScale  1  The lengths are measured in xaxis scale. The angles are measured clockwise in degrees, with the upwards position as 0.

YAxisScale  2  The lengths are measured in yaxis scale. The angles are measured clockwise in degrees, with the upwards position as 0.

EndPoints  3  The vector lengths and directions are measured as the lengths and directions between the reference points and the reference end points.

A
VectorLayer object representing the vector layer created.
© 2017 Advanced Software Engineering Limited. All rights reserved.