XYDiagram2D.DiagramToPoint(String, TimeSpan, Axis2D, Axis2D, XYDiagramPaneBase) Method
Converts a point’s diagram coordinates into screen coordinates.
Namespace: DevExpress.XtraCharts
Assembly: DevExpress.XtraCharts.v24.2.dll
NuGet Package: DevExpress.Charts
#Declaration
public ControlCoordinates DiagramToPoint(
string argument,
TimeSpan value,
Axis2D axisX,
Axis2D axisY,
XYDiagramPaneBase pane
)
#Parameters
Name | Type | Description |
---|---|---|
argument | String | The point’s argument. |
value | Time |
The point’s value. |
axis |
Axis2D | |
axis |
Axis2D | |
pane | XYDiagram |
An XYDiagram |
#Returns
Type | Description |
---|---|
Control |
A Control |
#Remarks
Use the DiagramToPoint method, to convert a point’s diagram coordinates (measured in axis units) to the screen coordinates (from the top-left window corner in pixels). 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.
With the Radar and Polar diagram types, use the similar RadarDiagram.PointToDiagram and RadarDiagram.DiagramToPoint methods.