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

Update sunburst #36

Merged
merged 12 commits into from
Jan 26, 2021
Merged

Update sunburst #36

merged 12 commits into from
Jan 26, 2021

Conversation

pverscha
Copy link
Member

This PR updates the sunburst visualization from D3 v3 to D3 v6, replaces JavaScript with TypeScript and does no longer require jQuery as a dependency.

Functionality of this sunburst is completely equivalent to the original sunburst, but some performance improvements have been made under the hood. These result in a significant speedup for complex sunburst visualizations.

A sunburst with ~6000 nodes takes about 15-16 seconds to render using the original sunburst. The new version brings this time down to about 0.5 seconds. This is a comparison between both versions for future reference (left is v2, right is v1):

Sunburst.v1.vs.v2.mp4

@pverscha pverscha self-assigned this Jan 22, 2021
@@ -0,0 +1,22 @@
import * as d3 from "d3";
Copy link
Member

Choose a reason for hiding this comment

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

I don't know if it would make a difference here, but maybe only import the single function that is used?

Copy link
Member Author

Choose a reason for hiding this comment

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

I resolved this in the most recent commit :)

@pverscha
Copy link
Member Author

Part of the changes in this PR are based upon the work done by @MaybeJustJames in #36! Thank you, @MaybeJustJames, for your contribution to our codebase!

@pverscha pverscha changed the base branch from master to develop January 26, 2021 10:08
@pverscha pverscha merged commit a67afd8 into develop Jan 26, 2021
This was referenced Feb 16, 2021
@bmesuere bmesuere deleted the update_sunburst branch March 9, 2021 09:39
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.

2 participants