XYDiagram2D.DiagramToPoint(Double, DateTime) 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(
double argument,
DateTime value
)
#Parameters
Name | Type | Description |
---|---|---|
argument | Double | A Double value, specifying the point’s argument. |
value | Date |
A Date |
#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.
Note
For the opposite conversion (of screen coordinates to diagram coordinates), use the XYDiagram2D.
#Example
This example demonstrates how to use a DiagramToPoint method to transform chart coordinates to screen coordinates.
ControlCoordinates controlCoordinates = diagram.DiagramToPoint(diagramCoordinates.DateTimeArgument, seriesValue);