TChartSeries.LastValueIndex

TChartSeries.LastValueIndex
TChartSeries

property LastValueIndex: Integer;

Unit
TeEngine

Description
This property returns the ValueIndex of the Last point in the Series that has an X value which is between the Horizontal Axis Maximum and Minimum values.

When no Zoom is applied to the Chart, and the Axis are Automatic, the LastValueIndex is the same as TChartSeries.Count-1.

If the Series has no points or there are no visible points, the LastValueIndex returns -1.