PDA

View Full Version : Chart Category Axis Order



blandbutgreasy
25 May 2012, 8:19 AM
In the Bar chart examples (eg http://docs.sencha.com/ext-js/4-1/#!/example/charts/BarRenderer.html), the month axis shows the months in order (from top to bottom) December to January. How would one go about re-ordering the categories so it reads January to December without changing the order (sorting) of the underlying store? I ask because I have a page that includes a chart and grid that use the same store and I want the category axis to show in the same order as the grid. If the grid is reordered by column, the chart should update to reflect the new order.

35635

Apologies if I've missed an obvious section of the documentation, but I couldn't find anything.

scottmartin
25 May 2012, 3:27 PM
The chart gathers the data from the store, so you will have to sort the store accordingly.

Scott.

blandbutgreasy
26 May 2012, 1:42 AM
so, to get the effect that i want i will need to have 2 stores - one for the chart and one for the grid - and explicitly handle ordering events?