ChartDirector 7.1 (.NET Edition)

PolarVectorLayer.setVectorMargin


Usage

[C#]public void setVectorMargin(double startMargin [, double endMargin ]);
[VB]Public Sub setVectorMargin(startMargin As Double [, endMargin As Double ])

Description

Sets the margins to shorten the vectors.

By default, vectors will be drawn from the given start points to the given end points.

In some cases, it may be desirable to shorten the vectors so that they do not start exactly at the start points and/or end exactly at the end points. For example, the vectors may be used to point to some circular symbols created by a ScatterLayer. The vectors may need to point to the perimeter of the circles, rather than their centers. This can be achieved by shortening the vectors by the radius of the circles.

Arguments

ArgumentDefaultDescription
startMargin(Mandatory)The length to shorten at the start of the vector in pixels.
endMarginNoValueThe length to shorten at the end of the vector in pixels. NoValue means the length is the same as startMargin.

Return Value

None