# Axis class

Serves as the base class for chart axes, which map data values to screen positions and supply labels, tickmarks, and gridlines.

**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 abstract class Axis : ChartElement
```

## Public Members

| name | description |
| --- | --- |
| [Color](Axis/Color.md) { get; set; } | Gets or sets the color of the axis line, tickmarks, labels, and title. |
| [ConstantLines](Axis/ConstantLines.md) { get; } | Gets the constant lines drawn on the axis. |
| [ConstantLinesSource](Axis/ConstantLinesSource.md) { get; set; } | Gets or sets the collection of source items used to fill the ConstantLines collection. |
| [ConstantLineTemplate](Axis/ConstantLineTemplate.md) { get; set; } | Gets or sets the template used to create constant lines from the ConstantLinesSource collection. |
| [ElementsOffset](Axis/ElementsOffset.md) { get; set; } | Gets or sets the indentation between the axis line and the drawing area, in device-independent pixels. |
| [EnableScrolling](Axis/EnableScrolling.md) { get; set; } | Gets or sets whether users can scroll the axis range with the mouse or the keyboard. |
| [EnableZooming](Axis/EnableZooming.md) { get; set; } | Gets or sets whether users can zoom the axis range with the mouse or the keyboard. |
| [InterlacingColor](Axis/InterlacingColor.md) { get; set; } | Gets or sets the color of the alternating bands drawn between the major gridlines. |
| [MajorGridlinesColor](Axis/MajorGridlinesColor.md) { get; set; } | Gets or sets the color of the major gridlines. |
| [MajorGridlinesWidth](Axis/MajorGridlinesWidth.md) { get; set; } | Gets or sets the thickness of the major gridlines, in device-independent pixels. |
| [MajorTickmarksLength](Axis/MajorTickmarksLength.md) { get; set; } | Gets or sets the length of the major tickmarks, in device-independent pixels. |
| [MinorCount](Axis/MinorCount.md) { get; set; } | Gets or sets the number of minor intervals between two major tickmarks. |
| [MinorGridlinesColor](Axis/MinorGridlinesColor.md) { get; set; } | Gets or sets the color of the minor gridlines. |
| [MinorGridlinesWidth](Axis/MinorGridlinesWidth.md) { get; set; } | Gets or sets the thickness of the minor gridlines, in device-independent pixels. |
| [MinorTickmarksLength](Axis/MinorTickmarksLength.md) { get; set; } | Gets or sets the length of the minor tickmarks, in device-independent pixels. |
| [ShowAxisLine](Axis/ShowAxisLine.md) { get; set; } | Gets or sets whether the axis line is displayed. |
| [ShowInterlacing](Axis/ShowInterlacing.md) { get; set; } | Gets or sets whether the drawing area is interlaced between the major gridlines. |
| [ShowLabels](Axis/ShowLabels.md) { get; set; } | Gets or sets whether the axis labels are displayed. |
| [ShowMajorGridlines](Axis/ShowMajorGridlines.md) { get; set; } | Gets or sets whether major gridlines are displayed. If the value is null, gridlines are displayed for the first axis only. |
| [ShowMajorTickmarks](Axis/ShowMajorTickmarks.md) { get; set; } | Gets or sets whether major tickmarks are displayed. |
| [ShowMinorGridlines](Axis/ShowMinorGridlines.md) { get; set; } | Gets or sets whether minor gridlines are displayed. If the value is null, gridlines are displayed for the first axis only. |
| [ShowMinorTickmarks](Axis/ShowMinorTickmarks.md) { get; set; } | Gets or sets whether minor tickmarks are displayed. |
| [Strips](Axis/Strips.md) { get; } | Gets the strips drawn on the axis. |
| [StripsSource](Axis/StripsSource.md) { get; set; } | Gets or sets the collection of source items used to fill the Strips collection. |
| [StripTemplate](Axis/StripTemplate.md) { get; set; } | Gets or sets the template used to create strips from the StripsSource collection. |
| [Thickness](Axis/Thickness.md) { get; set; } | Gets or sets the thickness of the axis line, in device-independent pixels. |

## See Also

* class [ChartElement](./ChartElement.md)
* namespace [Eremex.AvaloniaUI.Charts](./index.md)

<!-- DO NOT EDIT: generated by xmldocmd for Eremex.Avalonia.Charts.dll -->
