The event procedure in this example runs whenever the user clicks in the chart workspace. If the user clicks a point, the procedure displays the series and point index values. Note that this procedure is declared as required by Visual Basic. For more information about using event procedures, see Declaring and Using Event Procedures.
Private Sub ChartSpace1_Click(ByVal ChartEventInfo As OWC.WCChartEventInfo)
Set c = ChartSpace1.Constants
If ChartSpace1.SelectionType = c.chSelectionPoint Then
seriesNumber = ChartSpace1.Selection.Parent.Index ' Point parent is series.
pointNumber = ChartSpace1.Selection.Index
MsgBox "series " & seriesNumber & " point " & pointNumber
End If
End Sub