ChartDirector 6.2 (.NET Edition)

Axis.setLength


Usage

[C#] public void setLength(int length);
[VB] Public Sub setLength(length As Integer)

Description

Sets the length of the axis.

During axis layout, ChartDirector will automatically set vertical axes to the same length as the plot area height, and horizontal axes to the same length as the plot area width.

Calling this method before axis layout has no effect, as the length will be overwritten during axis layout. This method should only be called after axis layout (after calling XYChart.layoutAxes, BaseChart.layout or XYChart.packPlotArea).

Arguments

ArgumentDefaultDescription
length(Mandatory)The length of the axis in pixels.

Return Value

None