IFastLineSeries.AddRealTime
IFastLineSeries
function AddRealTime(X, Y: Double; Const SomeLabel: WideString; SomeColor: OLE_COLOR): Integer;
Type Library
TeeChartx
Description
The AddRealTime method adds new points to a FastLineSeries. It is quicker than any of the other Add methods as only the new point is painted. AddRealTime should be used for high performance Charts.
Example [Visual Basic]:
Dim t As Integer
Private Sub Form_Load()
With TChart1
.AddSeries scFastLine
.TimerEnabled = True
.TimerInterval = 100
End With
End Sub
Private Sub TChart1_OnTimer()
t = t + 1
TChart1.Series(0).asFastLine.AddRealTime t, Cos(t), "", clTeeColor
End Sub