type TTChartOnMouseLeaveSeries = procedure(ASender: TObject; SeriesIndex: Integer) of object;
Type Library
TeeChartx
Description
This event is called when the mouse cursor "leaves" (exits) from any point of the series.
The OnMouseEnterSeries event is called when the mouse cursor "enters" the series.
Example [Visual Basic]:
Private Sub TChart1_OnMouseEnterSeries(ByVal SeriesIndex As Long)
Dim clicked As Long
clicked = TChart1.Series(SeriesIndex).GetMousePoint
' Show Series name and point index and value
Label1.Caption = "Series: " + TChart1.Series(SeriesIndex).Name + _
" point:" + Str(clicked) + _
" value:" + Str(TChart1.Series(SeriesIndex).YValues.Value(clicked))
End Sub
Private Sub TChart1_OnMouseLeaveSeries(ByVal SeriesIndex As Long)
Label1.Caption = ""
End Sub