MinorTickSpace: Double;
The MinorTickSpace property allows to calculate for value axis the step between minor tick marks.
This property is relevant for both main and secondary value axes. To use this property you need to set the MinorTick property to True and the AutoMinorTickSpace property to False.
The MinorTickSpace property sets the number of additional scale marks between the main marks for the category axis. Only visible marks are taken into account. Default value is 0, each mark is regarded as a main one. The property sets an integer value (fractional part is truncated) that specifies the number of minor tick marks between major tick marks.
Executing this example requires a form, a button named Button1 located on this form, the ChartBox and UiChart components and the UiErAnalyzer component named UiErAnalyzer1 that is used as the data source.
Class TESTForm: Form
UiErAnalyzer1: UiErAnalyzer;
UiChart1: UiChart;
ChartBox1: ChartBox;
Button1: Button;
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Begin
ChartBox1.Chart.AxisY.MinorTick := True;
ChartBox1.Chart.AxisY.AutoMinorTickSpace := False;
ChartBox1.Chart.AxisY.MinorTickSpace := 200;
End Sub Button1OnClick;
End Class TESTForm;
Clicking Button1 displays additional tick marks with the specified step on the Y axis.
See also: