Skip to content

CartesianChart.DiagramPointToScreenPoint method

Converts a pair of axis values to the corresponding position in control coordinates.

Namespace: Eremex.AvaloniaUI.Charts
Assembly: Eremex.Avalonia.Charts.dll
NuGet Package: Eremex.Avalonia.Controls

Declaration

public Point? DiagramPointToScreenPoint(AxisXCoordinate axisXCoordinate, 
    AxisYCoordinate axisYCoordinate)

Parameters

name type description
axisXCoordinate AxisXCoordinate The X axis and the value on that axis.
axisYCoordinate AxisYCoordinate The Y axis and the value on that axis.

Returns

type description
Point? The position within the control, or null if either value falls outside the visible range of its axis.

See Also

Used in articles