If I use the data
a b c d
A 2 3 3 2
B 2 2 2 3
C 3 3 3 2
D 2 2 2 3
and make a stacked bar chart, the categories are backwards (D C B A), the bar colors are correct (colored a b c d), but the legend is backwards (d c b a).
How do I rearrange these into a sane order? Is this a bug that can be fixed?