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.

axisX ASPxClientAxis2D

An ASPxClientAxis2D descendant, representing the X-axis.

axisY ASPxClientAxis2D

An ASPxClientAxis2D descendant, representing the Y-axis.

pane ASPxClientXYDiagramPane

An ASPxClientXYDiagramPane object, representing the pane.

Returns

Type Description
ASPxClientControlCoordinates

An ASPxClientControlCoordinates object, containing information about the point’s X and Y coordinates, its visibility state, and the associated pane.

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 WebChartControl.EnableClientSidePointToDiagram property is set to true. And, if you don’t need to convert diagram coordinates into display coordinates on the client side, leave the EnableClientSidePointToDiagram 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.

See Also