IValueList.Last
IValueList
property Last: Double;
Type Library
TeeChartx
Description
This property returns the Last point value. This is the same value as the Count - 1 index value:
Last Example
This is the same value as the Count - 1 index value:
Delphi
With TChart1 do
Begin
Series[ 0 ].YValues.Value[ Series[ 0 ].YValues.Count - 1 ] := 1234.56 ;
ShowMessage( FloatToStr(Series[ 0 ].YValues.Last ) );
end;
Visual Basic
With TChart1.Series( 0 )
.YValues.Value(.Count - 1) = 1234.56
MsgBox .YValues.Last
End With