Skip to main content

ASPxClientRadarDiagram.PointToDiagram(x, y) Method

Converts the display coordinates into a diagram coordinates object.

Declaration

PointToDiagram(
    x: number,
    y: number
): ASPxClientDiagramCoordinates

Parameters

Name Type Description
x number

The X-coordinate of a point (measured in pixels relative to the top left corner of a chart).

y number

The Y-coordinate of a point (measured in pixels relative to the top left corner of a chart).

Returns

Type Description
ASPxClientDiagramCoordinates

An ASPxClientDiagramCoordinates object, containing information about the point’s argument and value, their scale types, associated axes and pane.

Remarks

Use the PointToDiagram method, to convert screen coordinates of a point to the diagram coordinates (measured in axis units). For example, this allows you to determine what series or series point is being clicked by an end-user, and perform the required actions accordingly.

Note

This method works only if the WebChartControl.EnableClientSidePointToDiagram property is set to true. And, if you don’t need to convert display coordinates into diagram coordinates on the client side, leave the EnableClientSidePointToDiagram property disabled, to reduce the amount of the server-client traffic.

For the opposite conversion (of diagram coordinates to screen coordinates), use the ASPxClientRadarDiagram.DiagramToPoint method (with an overload appropriate to your axes’ scale types).

With the XY-Diagram type, use the similar ASPxClientXYDiagram2D.PointToDiagram and ASPxClientXYDiagram2D.DiagramToPoint methods.

For more information, see the following documents.

See Also