ISeries.Add
ISeries

function Add(AValue: Double; Const ALabel: WideString; Value: OLE_COLOR): Integer;

Type Library
TeeChartx

Description
The Series Add method can be used to insert new Series points when you do not have an X Value for the point.

This function inserts a new point in the Series. The new point only has Y values. X value is automatically calculated.

The ALabel parameter is optional (can be empty "").

The AColor parameter is optional.

The function returns the new point position in the Values list.

Add Examples

Delphi

With TChart1.Series[ 0 ] do

Begin

Add(3,' Pears ',clRed);

Add(4,' Apples ',clBlue);

Add(2,' Oranges ',clGreen);

end;

Visual Basic

With TChart1.Series( 0 )

.Add 3, "Pears", vbRed

.Add 4, "Apples", vbBlue

.Add 2, "Oranges", vbGreen

End With