Performs axis auto-scaling and sets the axis positions and lengths.
ChartDirector automatically calls this method when creating the chart output (eg. using 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
, etc) after calling this method.
© 2021 Advanced Software Engineering Limited. All rights reserved.