ITChart.OnClickSeries
ITChart

property OnClickSeries: TTChartOnClickSeries;

Type Library
TeeChartx

Description
An OnClickSeries event occurs whenever the user clicks onto any TChart Series point. The Sender parameter specifies the TChart class that originated the event. The Series parameter is the corresponding clicked Series class, and the ValueIndex parameter refers to the exact clicked point in the Series. Series have also an OnClick event that can be used individually to catch clicked points. The Button, Shift, X and Y parameters determine the mouse button and mouse cursor coordinates at the time the Series point was clicked.

WARNING:

Use the Stopmouse method to control how the mouse button behaves with dual modes (scroll or zoom after a ClickOnSeries event)

Example [Visual Basic]:

This event procedure shows the user at which series point (any drawn part of series) they have clicked.

Private Sub TChart1_OnClickSeries(ByVal SeriesIndex As Long, ByVal ValueIndex As Long, ByVal Button As TeeChart.EMouseButton, ByVal Shift As TeeChart.EShiftState, ByVal X As Long, ByVal Y As Long)

MsgBox "Clicked Series: " & TChart1.Series(SeriesIndex).Name & " at point: " & ValueIndex

TChart1.StopMouse

End Sub