On C#/ASP.NET I am creating a graph that I am putting dates on X axis; however, the dates are only being displayed on the major ticks. Does RadHtmlChart have a setting to display dates on minor ticks as well ?
I am attaching a screenshot.
Thanks
6 Answers, 1 is accepted
As per your assumption, currently RadHtmlChart supports labels only for the major ticks of the XAxis. The only possible option we can suggest you is to use category data axis (showing the labels as strings, not dates), but in this case the data points will be shown in the same distance no matter if the time frame between the data points is 1 or 10 hours.
Optionally, you can submit a feature request for the needed functionality in the Kendo Feedback portal and if many clients vote for it the developers for the chart will consider such implementation: https://feedback.telerik.com/kendo-jquery-ui
Regards,
Vessy
Progress Telerik
Hi Vessy
Is there a way to access the Category axis in RadHtmlChart (C# side) ? As far as I've seen, Category Axis is a kendo UI component, where as I am working on C# to create the chart. I wasn't able to see the category axis property in C#'s RadHtmlChart related components
Thank you
Edit : I found the way to convert the XAxis type from Date to Category; However, with category type, XAxis labels are shown as "NaN" rather than the date string. thought the dates would be converted to string and that's what would show on labels.
Is there anything I am missing ?
I am attaching screenshot.
Thanks.
For some reasons the attached image did not make it through.
Can you, please, share the exact approach you are using when parsing the Date values to strings? This should be done outside the chart, before passing the data to it, so it will use the string data directly.
Regards,
Vessy
Progress Telerik
Thanks Vessy. We didn't need the CategoryAxis approach.I apologize for the late reply.
This issue should be closed I think.
Thank you
Ahmet
Thank you for the update, Ahmet - I am glad you managed to implement the target scenario.
Regards,
Vessy
Progress Telerik