Question

I can't get the chart categories to match the legend. Maybe my data could be laid out better? Items should sort based on Date inside of each category.

Please see Fiddle here: http://jsfiddle.net/gcu2Y/

Using the addOrderRule doesn't seem to be working.

s1.addOrderRule(["January 2012", "January 2013"]); 

Thanks!

Was it helpful?

Solution

It's the category axis which needs ordering not the series. So you just need to add:

x.addGroupOrderRule(["January 2012", "January 2013"]);

Here's the fiddle: http://jsfiddle.net/gcu2Y/1/

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top