amcharts4
amcharts4 copied to clipboard
How to Plot the Chart in the Same Order of Data Given as Input ?
Hi, I'm designing a stacked bar chart with two series originated and received. when chart is drawn I'm getting data plotted in reverse order.
Data given as Input :
chart.data = [ { "Originated": 0, "Received": 19484.33, "name": "JK" }, { "Originated": 0, "Received": 16776.13, "name": "MN" }, { "Originated": 0, "Received": 35, "name": "VK" } ]
Output Chart :
I want JK should be the first bar then MN then VK as in the order of input data given to the chart.
Can you please help me to fix this?
Thanks in advance
Would you be able to post your whole chart and data on CodePen/jsFiddle so that we can test?
Hi, categoryAxis.renderer.inversed = true;
I kept inversed as true that's why I got like above after removing that it's fine. Thank you for the response.
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.