Skip to content

handle large circular sankey diagram #3535

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

Merged
merged 6 commits into from
Feb 14, 2019

Conversation

antoinerg
Copy link
Contributor

This PR fixes a shortcoming in PR #3406 which prevented it from rendering diagrams made of thousands of links with circularity.

This PR will be easier to review commit by commit.

Basically I had to improve the identifyCircle routine of d3-sankey-circular. It now relies on a new npm package I made that implements Johnson's algorithm to find elementary circuits in a directed graph. This package can be found over here on Github and on npm.

@antoinerg
Copy link
Contributor Author

My initial improvements were merged upstream: tomshanley/d3-sankey-circular#30

I submitted a new PR which gets rid of Map and Set in my implementation of Johnson's algorithm: tomshanley/d3-sankey-circular#31

Once those are merged and a new npm package is published, I will link to it. Getting close!

@etpinard
Copy link
Contributor

yes yes 💃

@antoinerg antoinerg merged commit ba2a485 into sankey-circular Feb 14, 2019
@antoinerg antoinerg deleted the pr-large-sankey-circular branch February 14, 2019 18:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants