# CartesianChart class

Displays series in a rectangular plot area defined by an X axis and a Y axis.

**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 class CartesianChart : ChartControl
```

## Public Members

| name | description |
| --- | --- |
| [CartesianChart](CartesianChart/CartesianChart.md)() | Initializes a new instance of the [`CartesianChart`](./CartesianChart.md) class. |
| [AxesX](CartesianChart/AxesX.md) { get; } | Gets the axes drawn along the horizontal edge of the plot area. |
| [AxesXSource](CartesianChart/AxesXSource.md) { get; set; } | Gets or sets the collection of axis definitions used to generate the items of [`AxesX`](./CartesianChart/AxesX.md). Each source item is turned into an axis by [`AxisXTemplate`](./CartesianChart/AxisXTemplate.md). |
| [AxesY](CartesianChart/AxesY.md) { get; } | Gets the axes drawn along the vertical edge of the plot area. |
| [AxesYSource](CartesianChart/AxesYSource.md) { get; set; } | Gets or sets the collection of axis definitions used to generate the items of [`AxesY`](./CartesianChart/AxesY.md). Each source item is turned into an axis by [`AxisYTemplate`](./CartesianChart/AxisYTemplate.md). |
| [AxisXTemplate](CartesianChart/AxisXTemplate.md) { get; set; } | Gets or sets the template used to create an X axis for each item of [`AxesXSource`](./CartesianChart/AxesXSource.md). |
| [AxisYTemplate](CartesianChart/AxisYTemplate.md) { get; set; } | Gets or sets the template used to create a Y axis for each item of [`AxesYSource`](./CartesianChart/AxesYSource.md). |
| [DiagramMargin](CartesianChart/DiagramMargin.md) { get; set; } | Gets or sets the space reserved around the plot area, excluding the axes and their labels. |
| [ScrollMouseButton](CartesianChart/ScrollMouseButton.md) { get; set; } | Gets or sets the mouse buttons that scroll the plot area. |
| [Series](CartesianChart/Series.md) { get; } | Gets the series displayed by the chart. |
| [SeriesSource](CartesianChart/SeriesSource.md) { get; set; } | Gets or sets the collection of series definitions used to generate the items of [`Series`](./CartesianChart/Series.md). Each source item is turned into a series by [`SeriesTemplate`](./CartesianChart/SeriesTemplate.md). |
| [SeriesTemplate](CartesianChart/SeriesTemplate.md) { get; set; } | Gets or sets the template used to create a series for each item of [`SeriesSource`](./CartesianChart/SeriesSource.md). |
| [SwapAxes](CartesianChart/SwapAxes.md) { get; set; } | Gets or sets whether the X axes are drawn vertically and the Y axes horizontally, which turns the chart on its side. |
| [DiagramPointToScreenPoint](CartesianChart/DiagramPointToScreenPoint.md)(…) | Converts a pair of axis values to the corresponding position in control coordinates. |
| [HideCrosshair](CartesianChart/HideCrosshair.md)() | Hides the crosshair and the value labels it displays. |
| [ResetZoom](CartesianChart/ResetZoom.md)() | Restores the visible range of every axis to the full range of its data. |
| [ScreenPointToDiagramPoint](CartesianChart/ScreenPointToDiagramPoint.md)(…) | Converts a position in control coordinates to the corresponding values on the axes. |
| [Scroll](CartesianChart/Scroll.md)(…) | Shifts the visible range of the axes along their value axes. |
| [ShowCrosshair](CartesianChart/ShowCrosshair.md)(…) | Shows the crosshair at the specified position in control coordinates. |
| [Zoom](CartesianChart/Zoom.md)(…) | Changes the visible range of the axes. |

## See Also

* class [ChartControl](./ChartControl.md)
* namespace [Eremex.AvaloniaUI.Charts](./index.md)

<!-- DO NOT EDIT: generated by xmldocmd for Eremex.Avalonia.Charts.dll -->
