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

This topic contains 2 replies, has 2 voices, and was last updated by  Patsy Issa 3 years, 3 months ago.

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

    Patsy Issa
    Participant

    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 3 years, 3 months ago by  Patsy Issa.
    #4917

    Sunil Urs
    Keymaster

    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

    Patsy Issa
    Participant

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

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

You must be logged in to reply to this topic.