2X faster development
The ultimate ASP.NET MVC UI toolkit to boost your development speed.
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. CSHTML @(Html.EJ().Chart("container") .PrimaryXAxis(axis=>axis.LabelFormat("MMM dd, yyyy")) . . . . . . . . . . . . . . ) 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.
|
2X faster development
The ultimate ASP.NET MVC UI toolkit to boost your development speed.
This page will automatically be redirected to the sign-in page in 10 seconds.
Hi this was very useful in general. I also sugest to add "HH" to the list.
Displays the hour of the day in 24-hour format.
Good suggestion