Home Forums Report Bugs Date bug when the values are loaded from php.

Date bug when the values are loaded from php.

Viewing 3 posts - 1 through 3 (of 3 total)
  • #4913

    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.

    Screenshot of the graph

    Any ideas on what might be the issue?

    • This topic was modified 11 years, 3 months ago by Patsy Issa.
    #4917

    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”

    #4919

    Worked like a charm :O i had tried intervalType alone :D cheers.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.