ChartDirector 7.0 (ASP/COM/VB Edition)

ColorAxis.setLevels


Usage

setLevels(maxLevels)

Description

Sets the maximum number of contour intervals on the axis.

If discrete color steps are used, the number of contour intervals is the number of color steps on the axis.

For a general color axis, the number of contour intervals is equal to the number of ticks minus 1. For example, an axis with 6 ticks at [0, 2, 4, 6, 8, 10] has 6 contour lines and 5 contour intervals.

The main usage of this method is to limit the number of contour lines and/or color steps on the contour layer.

If this method is never called, the default maximum number of contour intervals is 16.

Arguments

ArgumentDefaultDescription
maxLevels(Mandatory)An integer representing the maximum number of contour intervals.

Return Value

None