XYDiagram2D.DiagramToPoint(String, DateTime, Axis2D, Axis2D) Method

Converts the diagram coordinates of a point into screen coordinates.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v20.1.dll


public ControlCoordinates DiagramToPoint(
    string argument,
    DateTime value,
    Axis2D axisX,
    Axis2D axisY
Public Function DiagramToPoint(
    argument As String,
    value As Date,
    axisX As Axis2D,
    axisY As Axis2D
) As ControlCoordinates


Name Type Description
argument String

A String value, specifying the point's argument.

value DateTime

A DateTime, specifying the point's value.

axisX Axis2D

An Axis2D descendant, specifying the point's X-axis.

axisY Axis2D

An Axis2D descendant, specifying the point's Y-axis.


Type Description

A ControlCoordinates object, containing information about the point's screen coordinates, and its associated pane.


Use the DiagramToPoint method, to convert diagram coordinates of a point (measured in axis units) to the screen coordinates. For example, calling this method in the ChartControl.CustomPaint event handler allows you to obtain screen coordinates of series points, and draw custom graphics onto your chart across them.


For the opposite conversion (of screen coordinates to diagram coordinates), use the XYDiagram2D.PointToDiagram method.

With the Radar and Polar diagram types, use the similar RadarDiagram.PointToDiagram and RadarDiagram.DiagramToPoint methods.

For more information, see Handling Client-side Scripts.

See Also