ChartDirector 7.1 (.NET Edition)
ColorAxis.setLevels
Usage
[C#] | public void setLevels(int maxLevels); |
[VB] | Public Sub setLevels(maxLevels As Integer) |
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
Argument | Default | Description |
maxLevels | (Mandatory) | An integer representing the maximum number of contour intervals. |
Return Value
None
© 2023 Advanced Software Engineering Limited. All rights reserved.