ISeries.AddXY
ISeries
function AddXY(AX, AY: Double; Const ALabel: WideString; Value: OLE_COLOR): Integer;
Type Library
TeeChartx
Description
This function inserts a new point in the Series. The new point has X and Y values. The AXLabel parameter is optional (can be empty ''). The function returns the new point position in the Values list.
Example [Visual Basic]:
With TChart1
.AddSeries scLine
.Series(0).FillSampleValues 20
'Remove the first point
.Series(0).Delete 0
'Add a new random point
.Series(0).AddXY .Series(0).XValues.Last + 1, .Series(0).YValues.Last / .Series(0).YValues.Last - 1 + (Rnd(100) - (100 / 2)), "", clTeeColor
End With