I'm trying out amCharts the XY Chart. For X I use DateAxis.
series.dataFields.dateX = "date";
All is great as long for the "date" I provide new Date():
"date": new Date(iso_date)
But now I want to use different timezone to be used for DateAxis. I managed to convert dates with luxon with toHTTP() from this:
"[native Date Wed Jul 15 2020 08:21:00 GMT+0930 (Australian Central Standard Time)]"
to something like this:
"Tue, 14 Jul 2020 04:01:13 GMT"
And finally my chart data was correct. But now the timeline spans in completely wrong period. It's somewhere in the future in 2021 and it spans for the whole year (I'm using single day data).
How can I fix it? Or is there a way to use ISO dates - on default it rejects it completely.