XYDiagram2D.DiagramToPoint(String, Double, AxisX2D, AxisY2D) Method
Converts the diagram coordinates of a point into screen coordinates.
Namespace: DevExpress.Xpf.Charts
Assembly: DevExpress.Xpf.Charts.v24.1.dll
NuGet Package: DevExpress.Wpf.Charts
Declaration
public ControlCoordinates DiagramToPoint(
string argument,
double value,
AxisX2D axisX,
AxisY2D axisY
)
Parameters
Name | Type | Description |
---|---|---|
argument | String | A String value, specifying the point’s argument. |
value | Double | A Double, specifying the point’s value. |
axisX | AxisX2D | An AxisX2D descendant, specifying the point’s X-axis. |
axisY | AxisY2D | An AxisY2D descendant, specifying the point’s Y-axis. |
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.
Note
For the opposite conversion (of screen coordinates to diagram coordinates), use the XYDiagram2D.PointToDiagram method.
Example
This example demonstrates how to use a DiagramToPoint method to transform chart coordinates to screen coordinates.
ControlCoordinates controlCoordinates = diagram.DiagramToPoint(diagramCoordinates.DateTimeArgument, seriesValue);