ChartDirector 7.0 (ASP/COM/VB Edition)

ColorAxis.setCompactAxis


Usage

setCompactAxis([ b ])

Description

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.

Arguments

ArgumentDefaultDescription
btrue (non-zero)A true (non-zero) value means to compact the axis. A false (zero) value means not to compact the axis.

Return Value

None