Hi Inzitari,
Greetings from Syncfusion.
We would like to let you know that, if you need customized label formats, then you can use the labelFormat property of the axis and from the provided code snippet, you have specified labelFormat as y which specfies the year (2010, 2011, 2012, 2013 …), so the output of your chart has shown the year. But your requirement is to display the time and minutes for the date time values, so you can use the Skeleton property of the axis. The skeleton property is used to process the date time values in the specified format.
For more information skeleton formats, kindly find the
help document. In this help document, you can find the skeleton types under the
Additional skeletons section. We have prepared a sample in which we have used the skeleton property to format the axis labels. Kindly find the code snippet below to achieve this requirement and you can change this with respect to your requirement.
|
ASP.Net Core:
@Html.EJS().Chart("container").PrimaryXAxis(px => px.ValueType(Syncfusion.EJ2.Charts.ValueType.DateTime)
.IntervalType(Syncfusion.EJ2.Charts.IntervalType.Hours).Skeleton("hms")).Render()
|
Output of the above code will be as follows,
Sample for reference can be find from below link.
Thanks,
Dharani.