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

Problem using JSON-date in chart

2 Answers 133 Views
Charts
This is a migrated thread and some comments may be shown as answers.
Sam
Top achievements
Rank 1
Sam asked on 11 Oct 2013, 01:00 PM
Hi,

I have some difficulties to draw a graph when I use JSON-date format. I've reproduce the code at http://jsfiddle.net/saes/X5m93/1/
As you can see X-asis is not readable and it seems the graph is tighten.
When I use string instead of date in the JSON-file it works as it is expected. This is the same code as above but instead I've used string instead of date-format in the JSON file: http://jsfiddle.net/saes/5TRN2/2/

I wonder why I'm not able to use date-format in the JSON file and what's wrong in my code?

Regards,
Sam

2 Answers, 1 is accepted

Sort by
0
Accepted
Hristo Germanov
Telerik team
answered on 15 Oct 2013, 07:30 AM
Hello Sam,

Thank you for the contacting us.

If you haven't baseUnit we will get the average step(in your case this hours). Now you have two options:
1) Set baseUnit to days.
2) set baseUnitStep to auto -  This property will calculate the baseUnit based on the maxDateGroups.

Regards,
Hristo Germanov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Sam
Top achievements
Rank 1
answered on 15 Oct 2013, 07:43 AM
Hello Hristo,
Thank you for your reply. First solution solved my problem.

Regards,
Sam
Tags
Charts
Asked by
Sam
Top achievements
Rank 1
Answers by
Hristo Germanov
Telerik team
Sam
Top achievements
Rank 1
Share this question
or