# CartesianChart.DiagramPointToScreenPoint method

Converts a pair of axis values to the corresponding position in control coordinates.

**Namespace:** [`Eremex.AvaloniaUI.Charts`](../index.md)  
**Assembly:** `Eremex.Avalonia.Charts.dll`  
**NuGet Package:** [Eremex.Avalonia.Controls](https://www.nuget.org/packages/Eremex.Avalonia.Controls)

## Declaration

```csharp
public Point? DiagramPointToScreenPoint(AxisXCoordinate axisXCoordinate, 
    AxisYCoordinate axisYCoordinate)
```

## Parameters

| name | type | description |
| --- | --- | --- |
| axisXCoordinate | [`AxisXCoordinate`](../AxisXCoordinate.md) | The X axis and the value on that axis. |
| axisYCoordinate | [`AxisYCoordinate`](../AxisYCoordinate.md) | 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

* struct [AxisXCoordinate](../AxisXCoordinate.md)
* struct [AxisYCoordinate](../AxisYCoordinate.md)
* class [CartesianChart](../CartesianChart.md)
* namespace [Eremex.AvaloniaUI.Charts](../index.md)

<!-- DO NOT EDIT: generated by xmldocmd for Eremex.Avalonia.Charts.dll -->
