문제

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!

도움이 되었습니까?

해결책

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/

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top