ChamilaLiyanage opened a new issue #16158: URL: https://github.com/apache/echarts/issues/16158
### Version 5.2.2 ### Link to minimal reproduction _No response_ ### Steps To Reproduce When drawing stacked bar graph in echarts it is not possible to sort the axis based on total value (length of stacked bar). The data set is already sorted according the total value before given to echart options. This works when it is not stacked (with single series) but once stacked the sorting is not proper. How can the bars be sorted for the total value based on the length of total of stacked bar? chart json attached. [chart-json.txt](https://github.com/apache/echarts/files/7639449/chart-json.txt) ### Current Behavior  Stacked bars are sorted incorrectly. ### Expected Behavior The bars should be sorted with the highest to the lowest based on the total of the stack. Once the legend is clicked and some ### Environment ```markdown - OS: - Browser: - Framework: ``` ### Any additional comments? Any configurations/options in echarts that can be done to achieve this would be helpful. -- 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]
