ASPxClientXYDiagram2D.DiagramToPoint(argument, value, axisX, axisY, pane) Method
Converts the diagram coordinates of a point into screen coordinates.
#Declaration
DiagramToPoint(
argument: any,
value: any,
axisX: ASPxClientAxis2D,
axisY: ASPxClientAxis2D,
pane: ASPxClientXYDiagramPane
): ASPxClientControlCoordinates
#Parameters
Name | Type | Description |
---|---|---|
argument | any | An object, representing the point’s argument. |
value | any | An object, representing the point’s value. |
axis |
ASPx |
An ASPx |
axis |
ASPx |
An ASPx |
pane | ASPx |
An ASPx |
#Returns
Type | Description |
---|---|
ASPx |
An ASPx |
#Remarks
Use the DiagramToPoint method, to convert diagram coordinates of a point (measured in axis units) to the screen coordinates. For example, this method allows you to obtain screen coordinates of series points, and draw custom graphics onto your chart across them.
Note
This method works only if the Enable
property is set to true
. And, if you don’t need to convert diagram coordinates into display coordinates on the client side, leave the Enable
property disabled, to reduce the amount of the server-client traffic.
For the opposite conversion (of screen coordinates to diagram coordinates), use the ASPxClientXYDiagram2D.PointToDiagram method.
With the Radar and Polar diagram types, use the similar ASPxClientRadarDiagram.PointToDiagram and ASPxClientRadarDiagram.DiagramToPoint methods.
For more information, see the following documents.