DiagramCoordinates Class
An object that contains descriptive information about a geometrical point within the diagram.
Namespace: DevExpress.Xpf.Charts
Assembly: DevExpress.Xpf.Charts.v14.2.dll
#Declaration
#Returned By
The XYDiagram2D.PointToDiagram(Point) method returns an instance of DiagramCoordinates.
#Remarks
The DiagramCoordinates class contains the argument and value (as well as their scale types) of the series point to which the geometrical point corresponds.
#Examples
The following example demonstrates how to display a crosshair cursor on the LineSeries2D chart and show the current series coordinates on the crosshair labels.
To accomplish this task, you need to convert mouse coordinates to diagram coordinates and vice versa using the XYDiagram2D.PointToDiagram and XYDiagram2D.DiagramToPoint methods accordingly.
After the coordinate transformation is done, it becomes possible to draw the crosshair cursor on the diagram and do other required customizations that are shown in code.