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 TChartAxis.Maximum and TChartAxis.Minimum values.
When no TCustomTeePanelExtended.Zoom is applied to the Chart, and the Axis are TChartAxis.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.