ISeries.AddNull
ISeries

function AddNull(Const SomeLabel: WideString): Integer;

Type Library
TeeChartx

Description
The Series AddNull method can be used to insert new Null points to a Series. The null is represented as an index point of the Chart without value.

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

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

Example [Visual Basic]:

In this example the Axis and Legend labels ("1st", "2nd", "null", etc) are generated by the ALabel parameter of the Add and AddNull methods to clarify how points are added. In your own Chart, creating and displaying Labels is optional.

With TChart1

.AddSeries scLine

.Series(0).Add Rnd(100), "1st", clTeeColor

.Series(0).Add Rnd(100), "2nd", clTeeColor

.Series(0).AddNull "Null"

.Series(0).Add Rnd(100), "4th", clTeeColor

.Series(0).Add Rnd(100), "5th", clTeeColor

.Series(0).Add Rnd(100), "6th", clTeeColor

.Series(0).Add Rnd(100), "7th", clTeeColor

.Series(0).Add Rnd(100), "8th", clTeeColor

End With