[Feature] Be able to reverse legend order (stacked bar charts) #20779
Labels
en
This issue is in English
new-feature
pending
We are not sure about whether this is a bug/new feature.
What problem does this feature solve?
I am replacing dashboard paid for by companies in maintenance and oil/gas industries, who would have charts like below. See how the legend shows lowest to highest values (or increasing severity). The stacked bar shows the highest values at the bottom, as they tend to be more important and fluctuate less.
This is what I am aiming to achieve.
But I can't find a way to do this in echarts. See below for what I've managed to get done. You can see how bad it looks, having the legend ordered that way is counter intuitive.
What does the proposed API look like?
I think a simple
order: null | 'reversed'
property on thelegend
property would be enough.The text was updated successfully, but these errors were encountered: