How to Set Chart Axis Properties

If you want to work with chart axis, scaling, and display units for the value axis, please use ChartAxisAxisDisplayUnit, and AxisScaling classes.

The following code example shows how to define X and Y-axis properties:

How to Set Date-Time Value of Axis

The following code example shows how to set date/time values to axis properties:

How to Format Number Value of Axis

The following code example shows how to change the format of numbers on the value axis:

How to Set Bounds of Axis

The AxisBound class represents a minimum or maximum bound of axis values. Bound can be specified as a numeric, date-time or a special “auto” value.

The following code example shows how to set the bounds of an axis:

How to Set Interval Unit Between Labels

The following code example shows how to set the interval unit between labels on an axis:

How to Hide Chart Axis

If you want to show or hide the chart axis, you can simply achieve this by setting the value of the set_Hidden property.

The following code example shows how to hide the Y-axis of the chart:

How to Align Chart Label

If you want to set a text alignment for multi-line labels, you can simply achieve this by setting the value of the TickLabelAlignment property. The following code example shows how to tick label alignment.