Intervals: Integer;
The Intervals property determines the number of intervals for a bar chart. To determine the number of intervals, you need to set AutoIntervals to False.
This example assumes that there is the Chart object of the IChart type.
Sub Main;
Var
Chart : IChart;
Begin
Chart.DisplayHistogramm := True;
Chart.HistogrammInfo.AutoIntervals := False;
Chart.HistogrammInfo.Intervals := 5 As Integer;
End Sub Main;
After executing the example 5 intervals are displayed on the bar chart.
See also: