堆叠柱状图每个柱子内部怎么根据数据排序,而不是默认采用图例的顺序?
option = { }
kxxlusnw1#
可以传入前先将数据排序好
raogr8fs2#
Order the data first indeed solves this problem.However, this solution would also change the order of legend, and the order of tooltip.Have a option to reverse the stack order would be helpful.
sh7euo9m3#
这个图设计有问题啊,好多人问这个。
bybem2ql4#
现在有解决方案了吗
4条答案
按热度按时间kxxlusnw1#
可以传入前先将数据排序好
raogr8fs2#
Order the data first indeed solves this problem.
However, this solution would also change the order of legend, and the order of tooltip.
Have a option to reverse the stack order would be helpful.
sh7euo9m3#
这个图设计有问题啊,好多人问这个。
bybem2ql4#
现在有解决方案了吗