AntidotUser opened a new issue, #19596:
URL: https://github.com/apache/echarts/issues/19596
### What problem does this feature solve?
Version
5.4.3
Link to minimal reproduction
No response
Steps To Reproduce
When drawing stacked bar graph in echarts the series in each stacked bar are
sorted randomly.
Current Behavior
<img width="571" alt="weird order"
src="https://github.com/apache/echarts/assets/159126129/92a1f4ab-d08d-4b0a-88ac-1974ffb9e364">
Stacked bars are sorted incorrectly.
Expected Behavior
The series in each bar should be sorted with the highest (at the left /
bottom) to the lowest (at the right / top) based on the value of the series.
Please take into account vertical and horizontal bar charts.
On the example, on the right bar the blue series should be between the
yellow and the red ones
Environment
```
- OS:
- Browser:
- Framework:
```
Any additional comments?
Any configurations/options in echarts that can be done to achieve this would
be helpful.
### What does the proposed API look like?
Ideally, a "sort" boolean parameter on the "xAxis" and "yAxis" options
should be enough, which default value would be "false" in order not to break
anything already existing.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]