Sets whether to compact the axis or not.
For a color axis, the axis can assume any length. Typically, an initial length is specified so that ChartDirector can determine how many labels can be fitted on the axis, and auto-scale the axis accordingly.
After the labels are determined, ChartDirector can compact the axis by setting its length to the minimum length compatible with the major tick density (see
Axis.setTickDensity).
For example, suppose ChartDirector auto-scaling has set the axis labels to be [0, 1, 2, 3, 4, 5], and the major tick density is 20 pixels, ChartDirector will set the axis length to 100 pixels, irrespective of its original length.
If this method is never called, the default is not to compact the axis.
© 2023 Advanced Software Engineering Limited. All rights reserved.