CartesianChart class
Displays series in a rectangular plot area defined by an X axis and a Y axis.
Namespace: Eremex.AvaloniaUI.Charts
Assembly: Eremex.Avalonia.Charts.dll
NuGet Package: Eremex.Avalonia.Controls
Declaration
public class CartesianChart : ChartControl
Constructors
Properties
| name |
description |
| AxesX { get; } |
Gets the axes drawn along the horizontal edge of the plot area. |
| AxesXSource { get; set; } |
Gets or sets the collection of axis definitions used to generate the items of AxesX. Each source item is turned into an axis by AxisXTemplate. |
| AxesY { get; } |
Gets the axes drawn along the vertical edge of the plot area. |
| AxesYSource { get; set; } |
Gets or sets the collection of axis definitions used to generate the items of AxesY. Each source item is turned into an axis by AxisYTemplate. |
| AxisXTemplate { get; set; } |
Gets or sets the template used to create an X axis for each item of AxesXSource. |
| AxisYTemplate { get; set; } |
Gets or sets the template used to create a Y axis for each item of AxesYSource. |
| DiagramMargin { get; set; } |
Gets or sets the space reserved around the plot area, excluding the axes and their labels. |
| ScrollMouseButton { get; set; } |
Gets or sets the mouse buttons that scroll the plot area. |
| Series { get; } |
Gets the series displayed by the chart. |
| SeriesSource { get; set; } |
Gets or sets the collection of series definitions used to generate the items of Series. Each source item is turned into a series by SeriesTemplate. |
| SeriesTemplate { get; set; } |
Gets or sets the template used to create a series for each item of SeriesSource. |
| SwapAxes { get; set; } |
Gets or sets whether the X axes are drawn vertically and the Y axes horizontally, which turns the chart on its side. |
Methods
| name |
description |
| DiagramPointToScreenPoint(…) |
Converts a pair of axis values to the corresponding position in control coordinates. |
| HideCrosshair() |
Hides the crosshair and the value labels it displays. |
| ResetZoom() |
Restores the visible range of every axis to the full range of its data. |
| ScreenPointToDiagramPoint(…) |
Converts a position in control coordinates to the corresponding values on the axes. |
| Scroll(…) |
Shifts the visible range of the axes along their value axes. |
| ShowCrosshair(…) |
Shows the crosshair at the specified position in control coordinates. |
| Zoom(…) |
Changes the visible range of the axes. |
See Also