PDA

View Full Version : How to reverse xAxis of a chart?



n1exceptme
6 Feb 2013, 2:02 PM
Hi.
I've a grid loading a data store ordered by descending date, i.e. from the newest to the oldest one.
I also have an area chart showing the same data.
Now it comes the question: :-/
Is there a simple way for the chart to show data in reverse order, i.e. by ascending date, from oldest (left) to newest (right)?

Thank you.

mitchellsimoens
8 Feb 2013, 11:42 AM
You would have to sort the store which would affect all charts bound to that store.

n1exceptme
23 Feb 2013, 6:47 AM
You would have to sort the store which would affect all charts bound to that store.


Thanks for the answer mitchell, but that would affect also the grid.
I would like a grid sorted in this way:

1 row : Today
2 row : Yesterday
3 row : The day before
...
365 row: 1 year ago

and, in the same time, I'd like a chart, showing data from left to right :

1_year_ago ---> ... ----> ... ----> ... ----> yesterday ----> today

Now I do it with 2 stores and downloading data from server 2 times, just because they are sorted in 2 different ways.