IChartSelectedSeries.AddSerie

Syntax

AddSerie (Serie: IChartSerie);

Parameters

Serie. The data series parameters.

Description

The AddSerie method adds a series to the collection of the selected data series of the chart by the specified parameter.

Example

Executing the example requires a form, the Button1 button located on this form, the ChartBox component and UiChart component used as a data source.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
    SelectedSeries: IChartSelectedSeries;
Begin
    SelectedSeries:= UiChart1.Chart.SelectedSeries;
    SelectedSeries.AddSerie(UiChart1.Chart.Series.Item(0));
End Sub Button1OnClick;

Clicking Button1 adds the first series to the collection of selected series.

See also:

IChartSelectedSeries