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 this example requires an existing form, located in the ChartBox component with the ChartBox1 name and the UiErAnalyzer component (data source). This 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 this example displays a message indicating selected series.

See also:

IChartSerieClickEventArgs