ecmap opened a new issue, #19913: URL: https://github.com/apache/echarts/issues/19913
### Version 5.5.0 ### Link to Minimal Reproduction No link as the project is not opensource ### Steps to Reproduce 1. paste the code to [https://echarts.apache.org/examples/en/editor.html?c=bar-race](https://echarts.apache.org/examples/en/editor.html?c=bar-race) ```javascript const data = []; const tempValue = [1, 2, 3, 4, 5] for (let i = 0; i < 5; ++i) { data.push(Math.round(Math.random() * 200)); } option = { xAxis: { max: 'dataMax' }, yAxis: { type: 'category', data: tempValue, inverse: true, animationDuration: 300, animationDurationUpdate: 300, }, series: [ { realtimeSort: true, name: 'X', type: 'bar', data: data, label: { show: true, position: 'right', valueAnimation: true } } ], legend: { show: true }, animationDuration: 0, animationDurationUpdate: 3000, animationEasing: 'linear', animationEasingUpdate: 'linear' }; function run() { for (var i = 0; i < data.length; ++i) { if (Math.random() > 0.9) { data[i] += Math.round(Math.random() * 2000); } else { data[i] += Math.round(Math.random() * 200); } tempValue[i] += Math.round(0.1 + Math.random() * 2.9); } myChart.setOption({ yAxis: { data: tempValue, }, series: [ { type: 'bar', data } ] }); } setTimeout(function () { run(); }, 0); setInterval(function () { run(); }, 3000); ``` ### Current Behavior realtimeSort is based on the series data rather than yAxis. ### Expected Behavior Chart sorted by y-axis data ### Environment ```markdown - OS: - - Browser: Chrome - Framework: - ``` ### Any additional comments? _No response_ -- 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]
