Back to Devexpress

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

corelibraries-devexpress-dot-xtracharts-dot-xydiagram2d-dot-diagramtopoint-x28-system-dot-datetime-system-dot-double-devexpress-dot-xtracharts-dot-axis2d-devexpress-dot-xtracharts-dot-axis2d-x29.md

latest3.8 KB
Original Source

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

Converts the diagram coordinates of a point into screen coordinates.

Namespace : DevExpress.XtraCharts

Assembly : DevExpress.XtraCharts.v25.2.dll

NuGet Package : DevExpress.Charts

Declaration

csharp
public ControlCoordinates DiagramToPoint(
    DateTime argument,
    double value,
    Axis2D axisX,
    Axis2D axisY
)
vb
Public Function DiagramToPoint(
    argument As Date,
    value As Double,
    axisX As Axis2D,
    axisY As Axis2D
) As ControlCoordinates

Parameters

NameTypeDescription
argumentDateTime

A DateTime value, specifying the point’s argument.

| | value | Double |

A Double, 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.

|

Returns

TypeDescription
ControlCoordinates

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

|

Remarks

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.

Note

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

CustomPaint

PointToDiagram(Point)

Handling Client-side Scripts

XYDiagram2D Class

XYDiagram2D Members

DevExpress.XtraCharts Namespace