We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
当data/options(scale)变更后图例的顺序出现了异常,scale.color.domain 配置的顺序失效
https://codesandbox.io/p/sandbox/xmgl3j
正常加载数据A,此时的图例顺序是正常的
切换成数据B并更新了scale.color配置,因为数据B只有1组数据,目前为止一切正常
scale: { color: { domain: ["无情感"], range: ["#65789B"], } }
scale: { color: { domain: ["正面", "负面", "中性", "无情感"], range: ["#60DDA9", "#F08A8A", "#5B8FF9", "#65789B"], } }
正确的顺序应该是如下:
更新数据+options.scale之后的图例顺序正常
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
问题描述
当data/options(scale)变更后图例的顺序出现了异常,scale.color.domain 配置的顺序失效
重现链接
https://codesandbox.io/p/sandbox/xmgl3j
重现步骤
正常加载数据A,此时的图例顺序是正常的
切换成数据B并更新了scale.color配置,因为数据B只有1组数据,目前为止一切正常
正确的顺序应该是如下:
预期行为
更新数据+options.scale之后的图例顺序正常
平台
屏幕截图或视频(可选)
No response
补充说明(可选)
No response
The text was updated successfully, but these errors were encountered: