You must be logged in to post your query.
Home › Forums › Report Bugs › Date bug when the values are loaded from php.
Tagged: dynamic content, js date bug, line graph
I have a loop that is populating the datapoints from the server, the output is as follows :
data: [ { type: "line", dataPoints: [ {x: new Date(2013, 08, 12), y: 3 }, {x: new Date(2013, 08, 13), y: 3 }, {x: new Date(2013, 08, 14), y: 10 }, ] }, ]
For some reason instead of displaying the days on the graph’s axis i get 3:00 am 3:00 pm repeated 3 times.
Any ideas on what might be the issue?
Automatically calculated interval is in hours and hence it is showing hours for all 3 days.
You can customize the same by setting interval to 1 and intervalType to “day”
Worked like a charm :O i had tried intervalType alone :D cheers.
You must be logged in to reply to this topic. Login/Register