IChartSerieClickEventArgs.SerieIndex

Syntax

SerieIndex: Integer;

Description

This property is read-only.

The SerieIndex property returns index of the selected series.

NOTE. For a pie chart with pie of pie the index of the selected merged series group is one point greater than the maximum series index.

Example

Executing the example requires a form, the ChartBox component named ChartBox1 on the form and the UiErAnalyzer component that is a data source. The example is executed after a chart series is clicked.

Sub ChartBox1OnSerieClick(Sender: Object; Args: IChartSerieClickEventArgs);

Var

S: String;

Begin

S := "Serie - " + Args.SerieIndex.ToString;

WinApplication.InformationBox(S);

End Sub ChartBox1OnSerieClick;

Executing the example displays a message with the selected series.

See also:

IChartSerieClickEventArgs