Retrieves the data point and series that a user selected (i.e. clicked on).
Function, which returns selected data point and selected series from x, and y coordinate position.
Visual Basic (Declaration) | |
---|---|
Public Sub Select( _ ByVal x As Integer, _ ByVal y As Integer, _ ByRef series As String, _ ByRef point As Integer _ ) |
Visual Basic (Usage) | Copy Code |
---|---|
|
Parameters
To determine what data point the user selected pass in the X and Y value mouse coordinates that the user clicked on. The series and points parameters will then be populated, letting the developer know what data point the user selected.
The mouse click coordinates are obtained from the ImageClickEventArgs argument of the control's Click event, which is used to handle the selection.
NOTE that we HIGHLY RECOMMEND using client-side image maps for drilldown because of its ease of use! The Select method only exists for backwards compatibility with code written for previous versions of the Chart control.
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family