This is a migrated thread and some comments may be shown as answers.

putting dates on minor ticks on X axis

6 Answers 28 Views
Chart (HTML5)
This is a migrated thread and some comments may be shown as answers.
Ahmet
Top achievements
Rank 1
Ahmet asked on 20 Feb 2019, 07:59 PM

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

Sort by
0
Vessy
Telerik team
answered on 25 Feb 2019, 03:57 PM
Hi Ahmet,

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
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Ahmet
Top achievements
Rank 1
answered on 26 Feb 2019, 05:28 PM

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

0
Ahmet
Top achievements
Rank 1
answered on 26 Feb 2019, 05:52 PM

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.

0
Vessy
Telerik team
answered on 01 Mar 2019, 03:26 PM
Hi Ahmet,

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
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Ahmet
Top achievements
Rank 1
answered on 13 Mar 2019, 02:29 PM

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

0
Vessy
Telerik team
answered on 15 Mar 2019, 06:34 AM
Hi,

Thank you for the update, Ahmet - I am glad you managed to implement the target scenario.

Regards,
Vessy
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Chart (HTML5)
Asked by
Ahmet
Top achievements
Rank 1
Answers by
Vessy
Telerik team
Ahmet
Top achievements
Rank 1
Share this question
or