PeakInterval: Integer;
The PeakInterval property determines the interval for peak values.
This property applies only to lines of a trend with the Peak Values type.
This example assumes that there is the Chart object of the IChart type.
Sub TrendLine;
Var
Chart: IChart;
Begin
Chart.Series.Item(0).TrendLines.Item(0).TrendType := 5 As ChartTrendType;//set trend type Peak Values
Chart.Series.Item(0).TrendLines.Item(0).PeakInterval := 4;
End Sub TrendLine;
Executing this example builds a line of a peak-type trend with the specified interval.
See also: