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
桑基图的数据如果带了数字的文本,显示的图形不正确
1、在官方示例桑基图 2、修改DATA为
[ {source: "某某市某某区中国人民政治协商会议某某市某某区委员会办公室20192019", target: "1", value: 15726800.41}, {source: "某某市某某区中国人民政治协商会议某某市某某区委员会办公室20192019", target: "1", value: 0}, {source: "某某市某某区中国人民政治协商会议某某市某某区委员会办公室20192019", target: "1", value: 500000}, {source: "某某市某某区中国人民政治协商会议某某市某某区委员会办公室20192019", target: "1", value: 928590.24}, {source: "某某市某某区中国人民政治协商会议某某市某某区委员会办公室20192019", target: "1", value: 0}, {source: "某某市某某区中国人民政治协商会议某某市某某区委员会办公室20192019", target: "1", value: 90000}, {source: "某某市某某区中国人民政治协商会议某某市某某区委员会办公室20192019", target: "1", value: 7828281}, {source: "某某市某某区中国人民政治协商会议某某市某某区委员会办公室20192019", target: "1", value: 2000384.93}, {source: "某某市某某区中国人民政治协商会议某某市某某区委员会办公室20192019", target: "1", value: 205964.97}, {source: "某某市某某区中国人民政治协商会议某某市某某区委员会办公室20192019", target: "2", value: 20682265.98}, {source: "1", target: "基本性零余额现金", value: 0}, {source: "1", target: "基本性零余额用款额度", value: 500000}, {source: "1", target: "日常公用经费", value: 928590.24}, {source: "1", target: "累计结转", value: 0}, {source: "1", target: "项目性零余额现金", value: 90000}, {source: "1", target: "项目性零余额用款额度", value: 7828281}, {source: "1", target: "项目支出", value: 2000384.93}, {source: "1", target: "项目支出结转", value: 205964.97}, {source: "1", target: "人员经费", value: 15726800.41}, {source: "2", target: "人员经费", value: 20682265.98} ]
3、图形展示情况不对
1、如果把"1"改成"1月份"、"2"改成"2月份" 2、即修改DATA为
[ {source: "某某市某某区中国人民政治协商会议某某市某某区委员会办公室20192019", target: "1月份", value: 15726800.41}, {source: "某某市某某区中国人民政治协商会议某某市某某区委员会办公室20192019", target: "1月份", value: 0}, {source: "某某市某某区中国人民政治协商会议某某市某某区委员会办公室20192019", target: "1月份", value: 500000}, {source: "某某市某某区中国人民政治协商会议某某市某某区委员会办公室20192019", target: "1月份", value: 928590.24}, {source: "某某市某某区中国人民政治协商会议某某市某某区委员会办公室20192019", target: "1月份", value: 0}, {source: "某某市某某区中国人民政治协商会议某某市某某区委员会办公室20192019", target: "1月份", value: 90000}, {source: "某某市某某区中国人民政治协商会议某某市某某区委员会办公室20192019", target: "1月份", value: 7828281}, {source: "某某市某某区中国人民政治协商会议某某市某某区委员会办公室20192019", target: "1月份", value: 2000384.93}, {source: "某某市某某区中国人民政治协商会议某某市某某区委员会办公室20192019", target: "1月份", value: 205964.97}, {source: "某某市某某区中国人民政治协商会议某某市某某区委员会办公室20192019", target: "2月份", value: 20682265.98}, {source: "1月份", target: "基本性零余额现金", value: 0}, {source: "1月份", target: "基本性零余额用款额度", value: 500000}, {source: "1月份", target: "日常公用经费", value: 928590.24}, {source: "1月份", target: "累计结转", value: 0}, {source: "1月份", target: "项目性零余额现金", value: 90000}, {source: "1月份", target: "项目性零余额用款额度", value: 7828281}, {source: "1月份", target: "项目支出", value: 2000384.93}, {source: "1月份", target: "项目支出结转", value: 205964.97}, {source: "1月份", target: "人员经费", value: 15726800.41}, {source: "2月份", target: "人员经费", value: 20682265.98} ]
3、则图形预览正常 4、期望予以修复
G2Plot Version: 官方示例 Platform: 官方示例
The text was updated successfully, but these errors were encountered:
fix(sankey): 桑基图节点顺序需要保证原序
3028082
close: #2825
fix(sankey): 桑基图节点顺序需要保证原序 (#2897)
5ad43b7
Successfully merging a pull request may close this issue.
🐛 Bug description
桑基图的数据如果带了数字的文本,显示的图形不正确
📷 Step to reproduce
1、在官方示例桑基图
2、修改DATA为
3、图形展示情况不对
![image](https://user-images.githubusercontent.com/39271126/131464236-0fe8cd0e-f7b3-4392-bfb3-9a4386a9b7c1.png)
🏞 Expected result
1、如果把"1"改成"1月份"、"2"改成"2月份"
2、即修改DATA为
3、则图形预览正常
![image](https://user-images.githubusercontent.com/39271126/131464621-b06a11d3-7448-4902-bc3a-8e769e001ff1.png)
4、期望予以修复
G2Plot Version: 官方示例
Platform: 官方示例
The text was updated successfully, but these errors were encountered: