Skip to main content
A newer version of this page is available. .

XYDiagram2D.DiagramToPoint(DateTime, Double) Method

Converts the diagram coordinates of a point into screen coordinates.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v18.2.dll

Declaration

public ControlCoordinates DiagramToPoint(
    DateTime argument,
    double value
)

Parameters

Name Type Description
argument DateTime

A DateTime value, specifying the point’s argument.

value Double

A Double, specifying the point’s value.

Returns

Type Description
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.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the DiagramToPoint(DateTime, Double) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also