ChartDirector 6.2 (.NET Edition)



[C#] public void layoutAxes();
[VB] Public Sub layoutAxes()


Performs axis auto-scaling and sets the axis positions and lengths.

ChartDirector automatically calls this method when creating the chart output (eg. using BaseChart.makeWebImage, BaseChart.makeImage or BaseChart.makeChart). There is usually no need to call this method explicitly.

However, if you would like to draw custom objects whose positions or contents depend on the axis scales, you may call this method to auto-scaling the axes before creating the chart output.

The axes will auto-scale based on the data at the time of calling this method. New data added afterwards will not affect the axis scale.

You should not modify the axis scale (eg. using Axis.setLinearScale, Axis.setLabels, etc) after calling this method.



Return Value