ChartDirector 6.0 (C++ Edition)
ArrayMath& selectRegularSpacing(int majorTickStep, int minorTickStep = 0, int initialMargin = 0);
Selects an evenly spaced subset of elements of the ArrayMath object.
The primary purpose of this method is to select the regularly spaced elements as ticks on an enumerated axis.
For example, if the majorTickStep
is 10, and minorTickStep
is 5, this method will select one out of 10 elements as major tick elements, and one of out of 5 elements as minor tick elements.
Major tick elements will remain intact. The remaining minor ticks elements will have their values replaced with MinorTickOnly
. Non-selected elements will have their values replaced with NoValue
, so they will not appear on the axis. The resulting array can be used directly in Axis.setLabels2
|majorTickStep||(Mandatory)||The spacing between major ticks.|
|minorTickStep||0||The spacing between minor ticks. 0 means no minor tick will be used.|
|initialMargin||0||The position of the first tick.
The current ArrayMath object.
© 2017 Advanced Software Engineering Limited. All rights reserved.