OnSerieClick

Syntax

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

Begin

// set of operators

End Sub OnSerieClick;

Parameters

The Sender parameter returns the component that has generated the event.

The Args parameter allows to define event parameters.

Description

The OnSerieClick event occurs on clicking a chart series.

NOTE. This event is handled if the hyperlink mode is enabled for the chart (ChartInteractiveMode).

Example

Executing this example requires a form containing the ChartBox component named ChartBox1 and the UiErAnalyzer component used as a data source. This example is executed after a chart series is clicked.

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

Var

S: String;

Begin

S := "Point - " + Args.PointIndex.ToString;

WinApplication.InformationBox(S);

End Sub ChartBox1OnSerieClick;

Executing this example displays a message indicating the selected series point.

See also:

ChartBox