IChartAxis.IntervalsCount

Syntax

IntervalsCount: Integer;

Description

The IntervalsCount property determines the number of intervals on the Y axis.

Comments

The IntervalsCount property is applicable only to value axis.

When a fixed number of intervals on an axis is set, set the StepMode property to an appropriate value.

Example

Executing the example requires a form, the Button component with the Button1 identifier on the form, the ChartBox component with the ChartBox1 identifier and the UiErAnalyzer component with the UiErAnalyzer1 identifier, which is used as a data source for the ChartBox1 component. Specify the express report saved on the chart sheet as a data source for the UiErAnalyzer1 component.

The example is a handler of the OnClick event for the Button1 component.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    Chart: IChart;
    ChartAxis: IChartAxis;
Begin
    Chart := ChartBox1.Chart;
    ChartAxis := Chart.AxisY;
    ChartAxis.StepMode := 2 As ChartAxisStepMode;
    ChartAxis.IntervalsCount := 2;
End Sub Button1OnClick;

After executing the example the Y axis has two intervals only.

See also:

IChartAxis|IChartAxis.StepMode