I am plotting area chart using amcharts, the x-axis data date values range from 08/01/2014 to 08/30/2014. But the graph displaying the x-axis values from 07/31/2014 onwards. This issue is found only in latest version of windows Firefox and chrome. Attaching the screen shot of the graph plotted and the dataProvider values below.
dataProvider = [{
"value": 0,
"date": "2014-08-01"
},
{
"value": 17
"date": "2014-08-02"
},
{
"value": 24
"date": "2014-08-03"
},
{
"value": 26
"date": "2014-08-04"
},
....
]
How could I solve this? Any help would be appreciated. Thanks in advance.
I am plotting area chart using amcharts, the x-axis data date values range from 08/01/2014 to 08/30/2014. But the graph displaying the x-axis values from 07/31/2014 onwards. This issue is found only in latest version of windows Firefox and chrome. Attaching the screen shot of the graph plotted and the dataProvider values below.
dataProvider = [{
"value": 0,
"date": "2014-08-01"
},
{
"value": 17
"date": "2014-08-02"
},
{
"value": 24
"date": "2014-08-03"
},
{
"value": 26
"date": "2014-08-04"
},
....
]
How could I solve this? Any help would be appreciated. Thanks in advance.
Share Improve this question asked Sep 17, 2014 at 14:24 ShinojShinoj 8112 gold badges8 silver badges18 bronze badges 5- I was unable to reproduce this. Could we (amcharts) get full source code. It would be best if you could address directly to our support. – zeroin Commented Sep 17, 2014 at 17:06
- @zeroin Please see the updated fiddle. The categoryBalloon value also shows 07/31/2014. – Shinoj Commented Sep 18, 2014 at 5:42
- @zeroin This issue is able to reproduce in windows chrome(v 37.0.2062.120) and firefox version (v32) – Shinoj Commented Sep 18, 2014 at 8:28
- 2 Strange, I can't reproduce this in any browser. Try setting dataDateFormat:"YYYY-MM-DD" on the chart instance ( you must set dataDateFormat or use Date Objects instead) – zeroin Commented Sep 18, 2014 at 14:32
- 1 Thanks zeroin. Fixed the issue by setting dataDateFormat on chart instance. – Shinoj Commented Sep 19, 2014 at 5:00
1 Answer
Reset to default 6I updated your fiddle here:
The issue is the TIMEZONE. Amcharts appears to be taking the given time as UTC and converting back to your local time.
In the fiddle I modified the first few data points to
2014-08-01T10:00:01
next to 8AM next to 7AM (I am in California) and voila! date appears as expected in the balloons.