Skip to content
New issue

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

fix(sankey): 桑基图节点顺序需要保证原序 #2897

Merged
merged 1 commit into from
Oct 8, 2021
Merged

Conversation

visiky
Copy link
Member

@visiky visiky commented Oct 7, 2021

PR includes

Screenshot

Before After

@github-actions
Copy link
Contributor

github-actions bot commented Oct 7, 2021

🎊 PR Preview 3028082 has been successfully built and deployed to https://antvis-G2Plot-preview-pr-2897.surge.sh?type=diff&date=2021-10-07

🕐 Build time: 121.952s

🤖 By surge-preview

@@ -90,7 +90,8 @@ export function transformDataToNodeLinkData(
});
});
return {
nodes: Object.values(nodesMap),
// 需要按照 id 的顺序
nodes: Object.values(nodesMap).sort((a, b) => a.id - b.id),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

需要加单侧吗?

@hustcc hustcc merged commit 5ad43b7 into master Oct 8, 2021
@hustcc hustcc deleted the fix-2825 branch October 8, 2021 02:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

桑基图对数字的文本数据会造成显示异常🐛 [BUG]
2 participants