OnSerieClick

Syntax

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

Begin

// set of operators

End Sub OnSerieClick;

Parameters

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

Args - parameter that enables the user to determine 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 the example requires a form containing the ChartBox component named ChartBox1 and the UiErAnalyzer component used as a data source. The 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 the example displays a message indicating the selected series point.

See also:

ChartBox