IChartSelectedSeries.RemoveSerie

Syntax

RemoveSerie (Serie: IChartSerie);

Parameters

Serie. Chart data series.

Description

The RemoveSeries method deselects the specified series from the collection of selected data series of the chart.

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;
    If SelectedSeries.Count > 0 Then
        SelectedSeries.RemoveSerie(SelectedSeries.Item(0));
    End If;
End Sub Button1OnClick;

Clicking Button1 deselects the specified series from the collection of the selected data series of the chart.

See also:

IChartSelectedSeries