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 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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With