TChartSeries.Add

TChartSeries.Add
TChartSeries

function Add(Const AValue: TChartValue; Const ALabel: String; AColor: TColor): Integer; virtual; overload;

Unit
TeEngine

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

The new point added with the Add method only has Y values.
The X values are automatically calculated (
sequential index of 0,1,2,3,4..etc).

The ALabel parameter is optional (
can be empty '' ).
The AColor parameter is optional (
can be clTeeColor to indicate "default color" ).
The function returns the new point position in the Values list.

Multiline Labels may be set via the TChartAxis
LabelsMultiLine property or by Series Add method.

See also the AddXY method.

Example
:

Series1.Add( 1234, 'Hello'+TeeLineSeparator+'world' , clRed );
Series1.Add( 2000, 'Good'+TeeLineSeparator+'Day' , clBlue );