Dundas Chart for ASP.NET
Select Method
See Also  Send comments on this topic.
Dundas.Charting.WebControl Namespace > Chart Class : Select Method


x
The x-coordinate value of the point the user clicked on.
x coordinate position
y
The y-coordinate value of the point the user clicked on.
y coordinate position
series
The series that the user selected.
Selected data series
point
The DataPoint that the user selected.
Selected data point

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.

Syntax

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
Dim instance As Chart
Dim x As Integer
Dim y As Integer
Dim series As String
Dim point As Integer
 
instance.Select(x, y, series, point)
C#  
public void Select( 
   int x,
   int y,
   out string series,
   out int point
)

Parameters

x
The x-coordinate value of the point the user clicked on.
x coordinate position
y
The y-coordinate value of the point the user clicked on.
y coordinate position
series
The series that the user selected.
Selected data series
point
The DataPoint that the user selected.
Selected data point

Remarks

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.

Requirements

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

See Also

Copyright © 2001 - 2009 Dundas Data Visualization, Inc. and others.