dosubot[bot] commented on issue #38877: URL: https://github.com/apache/superset/issues/38877#issuecomment-4132629185
<!-- Greeting --> Hi @mxunn! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the superset team. <!-- Answer --> 这是一个已确认的 bug,影响 Superset 4.1.3、4.1.4、5.0.0 和 6.0.0 版本。当柱形图添加了维度(分组字段)时,图表会忽略指标排序设置,改为按类别名称字母顺序排序。 **根本原因**: ECharts 插件中的 `isMultiSeries` 标志会在存在维度时阻止轴排序设置生效(位于 `superset-frontend/plugins/plugin-chart-echarts/src/Timeseries/transformProps.ts`)。 **修复状态**: [PR #37712](https://github.com/apache/superset/pull/37712) 提交了修复方案,但尚未合并。 **临时解决方案**: 1. **在数据集层面预排序**: 在 SQL 查询中使用 ROW_NUMBER 或排名函数预先排序数据 2. **使用旧版柱形图**: 切换到 "Bar Chart (legacy)" 可视化类型,该版本仍支持带维度的指标排序 相关 issue: [#34352](https://github.com/apache/superset/issues/34352)、[#32436](https://github.com/apache/superset/issues/32436) <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot?utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=brand-link).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/188032dc-df32-40bd-85f6-7adc99c33662?feedback_type=great_response&utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=feedback-great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/188032dc-df32-40bd-85f6-7adc99c33662?feedback_type=irrelevant_answer&utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=feedback-irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/188032dc-df32-40bd-85f6-7adc99c33662?feedback_type=incorrect_sources&utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=feedback-incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/188032dc-df32-40bd-85f6-7adc99c33662?feedback_type=too_verbose&utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=feedback-too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/188032dc-df32 -40bd-85f6-7adc99c33662?feedback_type=hallucination&utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=feedback-hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/188032dc-df32-40bd-85f6-7adc99c33662?feedback_type=bug_report&utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=feedback-bug_report) | [Other](https://app.dosu.dev/response-feedback/188032dc-df32-40bd-85f6-7adc99c33662?feedback_type=other&utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=feedback-other)</sup> [](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=chat-badge) [](https://cursor.com/link/prompt?text=%E8%BF%99%E6%98%AF%E4%B8%80%E4%B8%AA%E5%B7%B2%E7%A1%AE%E8%AE%A4%E7%9A%84%20bug%EF%BC%8C%E5%BD%B1%E5%93%8D%20Superset%204.1.3%E3%80%814.1.4%E3%80%815.0.0%20%E5%92%8C%206.0.0%20%E7%89%88%E6%9C%AC%E3%80%82%E5%BD%93%E6%9F%B1%E5%BD%A2%E5%9B%BE%E6%B7%BB%E5%8A%A0%E4%BA%86%E7%BB%B4%E5%BA%A6%EF%BC%88%E5%88%86%E7%BB%84%E5%AD%97%E6%AE%B5%EF%BC%89%E6%97%B6%EF%BC%8C%E5%9B%BE%E8%A1%A8%E4%BC%9A%E5%BF%BD%E7%95%A5%E6%8C%87%E6%A0%87%E6%8E%92%E5%BA%8F%E8%AE%BE%E7%BD%AE%EF%BC%8C%E6%94%B9%E4%B8%BA%E6%8C%89%E7%B1%BB%E5%88%AB%E5%90%8D%E7%A7%B0%E5%AD%97%E6%AF%8D%E9%A1%BA%E5%BA%8F%E6%8E%92%E5%BA%8F%E3%80%82%0A%0A%2A%2A%E6%A0%B9%E6%9C%AC%E5%8E%9F%E5%9B%A0%2A%2A%3A%20ECharts%20%E6%8F%92%E4%BB%B6%E4%B 8%AD%E7%9A%84%20%60isMultiSeries%60%20%E6%A0%87%E5%BF%97%E4%BC%9A%E5%9C%A8%E5%AD%98%E5%9C%A8%E7%BB%B4%E5%BA%A6%E6%97%B6%E9%98%BB%E6%AD%A2%E8%BD%B4%E6%8E%92%E5%BA%8F%E8%AE%BE%E7%BD%AE%E7%94%9F%E6%95%88%EF%BC%88%E4%BD%8D%E4%BA%8E%20%60superset-frontend/plugins/plugin-chart-echarts/src/Timeseries/transformProps.ts%60%EF%BC%89%E3%80%82%0A%0A%2A%2A%E4%BF%AE%E5%A4%8D%E7%8A%B6%E6%80%81%2A%2A%3A%20%5BPR%20%2337712%5D%28https%3A//github.com/apache/superset/pull/37712%29%20%E6%8F%90%E4%BA%A4%E4%BA%86%E4%BF%AE%E5%A4%8D%E6%96%B9%E6%A1%88%EF%BC%8C%E4%BD%86%E5%B0%9A%E6%9C%AA%E5%90%88%E5%B9%B6%E3%80%82%0A%0A%2A%2A%E4%B8%B4%E6%97%B6%E8%A7%A3%E5%86%B3%E6%96%B9%E6%A1%88%2A%2A%3A%0A1.%20%2A%2A%E5%9C%A8%E6%95%B0%E6%8D%AE%E9%9B%86%E5%B1%82%E9%9D%A2%E9%A2%84%E6%8E%92%E5%BA%8F%2A%2A%3A%20%E5%9C%A8%20SQL%20%E6%9F%A5%E8%AF%A2%E4%B8%AD%E4%BD%BF%E7%94%A8%20ROW_NUMBER%20%E6%88%96%E6%8E%92%E5%90%8D%E5%87%BD%E6%95%B0%E9%A2%84%E5%85%88%E6%8E%92%E5%BA%8F%E6%95%B0%E6%8D%AE%0A2.%20%2A%2A%E4%BD%BF%E7%94%A8%E6%97%A7%E 7%89%88%E6%9F%B1%E5%BD%A2%E5%9B%BE%2A%2A%3A%20%E5%88%87%E6%8D%A2%E5%88%B0%20%22Bar%20Chart%20%28legacy%29%22%20%E5%8F%AF%E8%A7%86%E5%8C%96%E7%B1%BB%E5%9E%8B%EF%BC%8C%E8%AF%A5%E7%89%88%E6%9C%AC%E4%BB%8D%E6%94%AF%E6%8C%81%E5%B8%A6%E7%BB%B4%E5%BA%A6%E7%9A%84%E6%8C%87%E6%A0%87%E6%8E%92%E5%BA%8F%0A%0A%E7%9B%B8%E5%85%B3%20issue%3A%20%5B%2334352%5D%28https%3A//github.com/apache/superset/issues/34352%29%E3%80%81%5B%2332436%5D%28https%3A//github.com/apache/superset/issues/32436%29) [](https://go.dosu.dev/discord-bot?utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=join-discord) [](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/issues/38877) -- 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]
