View Full Version : Change the direction of Charts x-axis plotting

6 Jun 2012, 2:08 PM
Hi -

I am using extjs chart and when I render the chart, I see that the x-axis is plotted from left to right in the decreasing order.

ie, for 1 - 10, it show 10, 9, 8, 7 ,... , 1 , instead of 1,2,3, ..10. Etc. Same for other x-axis values.

Dates gets shown as 20120515,20120514,20120513, instead of 20120513, 20120514 , 20120515

Let me know how I can set the direction of the axis correctly. Thanks,

11 Jun 2012, 10:56 AM
The axis is based on your data? Is your data in the correct order ... and are the dates formatted?


12 Jun 2012, 12:42 PM
I got the issue..I was not giving the data in the order..I thought chart itself will assume the ordering based on the x and y axis. Looks like, chart renders the way we give the data to it..

I changed the order sorted by the x axis in increasing order, and then I found the data is being shown right.

Thanks for the reply !