XYDiagram2D.DiagramToPoint(TimeSpan, DateTime, AxisX2D, AxisY2D) Method
Converts the diagram coordinates of a point into screen coordinates.
Namespace: DevExpress.Xpf.Charts
Assembly: DevExpress.Xpf.Charts.v24.2.dll
NuGet Package: DevExpress.Wpf.Charts
#Declaration
public ControlCoordinates DiagramToPoint(
TimeSpan argument,
DateTime value,
AxisX2D axisX,
AxisY2D axisY
)
#Parameters
Name | Type | Description |
---|---|---|
argument | Time |
The point’s argument. |
value | Date |
The point’s value. |
axis |
Axis |
An Axis |
axis |
Axis |
An Axis |
#Returns
Type | Description |
---|---|
Control |
A Control |
#Remarks
Use the DiagramToPoint method to convert diagram coordinates of a point (measured in axis units) to the screen coordinates.
Screen coordinates are calculated starting from the top-left window corner and measured in pixels. Diagram coordinates are calculated from the bottom-left corner and measured in axis measurement units.
Note
For the opposite conversion (from screen coordinates to diagram coordinates), use the XYDiagram2D.