Essential Chart supports formatting labels in an axis using LabelFormat property of axis. This property takes a format string as value based on the value type of axis. You can display the date values in the date time axis in date, month, year, time, date/month/year, etc., formats using LabelFormat property.
By default, Chart automatically formats the axis labels smartly, based on the calculated minimum and maximum values of data points. You can also specify the desired format to the labels using LabelFormat property. The following code example illustrates this.
The following screenshot displays the Chart with primary X axis in “MMM dd, yyyy” format.
Figure 1: Chart with primary X axis in “MMM dd, yyyy” format
Date Time formats
The following table illustrates the various date time formats for axis labels.
This page will automatically be redirected to the sign-in page in 10 seconds.