# Axes

## Content



In a chart, there are two primary axes: X and Y. There are, of course, exceptions when you work with pie charts.

![](https://cdn.mescius.io/document-site-files/images/8ba28e07-1633-4a6a-9114-13b9f1f04eed/images/imagesext/axes.png)

In FlexChart, X-axis and Y-axis are represented by the **AxisX** and the **AxisY** property respectively. Both the properties return an **Axis** object comprising the properties of **<span data-popup-content="This class is available in \u003ca href=\u0022/componentone/api/wpf/online-flexchart/dotnet-api/C1.WPF.Chart/C1.WPF.Chart.Axis.html\u0022\u003e.NET\u003c/a\u003e and \u003ca href=\u0022/componentone/api/wpf/online-flexchart/dotnet-api/C1.WPF.Chart/C1.WPF.Chart.Axis.html\u0022\u003e.NET Framework\u003c/a\u003e." data-popup-title="Axis class" data-popup-theme="ui-tooltip-green qtip-green">Axis class</span>** given below:

## Layout and Style Properties

| **Property** | **Description** |
| --- | --- |
| AxisLine | Determines whether the axis line is visible. |
| AxisType | Contains the type of the axis. |
| Position | Sets the position of the axis. |
| Reversed | Reverses the direction of the axis. |
| Style | Sets the style of the axis. |
| Title | Sets the titles of the axis. |

## Axis Label Properties

| **Property** | **Description** |
| --- | --- |
| Format | Sets the format string for the axis labels. |
| LabelAlignment | Sets the alignment of the axis labels. |
| LabelAngle | Set the rotation angle of the axis labels. |
| Labels | Determines whether the axis labels are visible. |
| MajorUnit | Sets the distance between axis labels. |
| OverlappingLabels | Indicates how to handle overlapping axis labels. |

## Axis Grouping Properties

| **Property** | **Description** |
| --- | --- |
| GroupNames | Sets the group name for the axis labels. |
| GroupItemsPath | Sets the group name for the axis labels in hierarchical data. |
| GroupSeparator | Set the axis group separator. |
| GroupProvider | Sets the axis group provider. |

## Scaling, Tick Mark, and Grid line Properties

| **Property** | **Description** |
| --- | --- |
| MajorGrid | Determines whether the axis includes major grid lines. |
| MajorGridStyle | Contains properties to control the appearance of the major grid lines drawn perpendicular to the major tickmarks. |
| MinorGrid | Determines whether the axis includes minor grid lines. |
| MinorGridStyle | Contains properties to control the appearance of the minor grid lines drawn perpendicular to the minor tickmarks. |
| MajorTickMarks | Indicates the appearance of major tick marks. |
| MinorTickMarks | Indicates the appearance of minor tick marks. |
| Max | Sets the maximum value for the axis. |
| Min | Sets the minimum value for the axis. |
| Origin | Sets the value at which an axis crosses the perpendicular axis. |

For more information on Axes, refer to [FlexChart Axes](/componentone/docs/wpf/online-flexchart/FlexChart/WorkingwithFlexChart/FlexChartElements/FlexChartAxes).