I want to reverse the x axis to become from 2004 to 2018. Which mean 2016 2014 ... 2006
What I tried to do:
1- Reversed the dataProvider "dataProvider": this.state.historicalData.reverse()
But didn't work I got the following Chart:
2- I added reversed attribute to valueAxes object in the Amcharts config
"valueAxes": [{
"axisAlpha": 0,
"position": "right",
},{
"axisAlpha": 1,
"reversed": true,
"position": "bottom",
}]
But that didn't work because it's a Serial Chart as we mentioned here
So, Any solution instead of changing the chart type to XY
?