Skip to main content
100%

Fork of Fork of D3 v5 Zoomable Sunburst

✓ Published0🌍 Public
Bblueyjuice
Last edited Dec 1, 2021
Created on Dec 1, 2021

This visualization presents a zoomable sunburst of the Flare dataset, showing a hierarchical file structure as multi-level arcs. Rendered with SVG and animated transitions, users click any segment to make it the new root, smoothly redrawing the tree with D3 v5’s updated partition layout. The code uses `d3.hierarchy`, `d3.partition`, and `d3.arc` to compute geometry, while `transition.attrTween` and `d3.interpolate` animate the arcs and labels. Colors derive from `d3.scaleOrdinal` with an interpolated rainbow range, and the data loads asynchronously from the Observable Flare library.

AI-generated description

Mike Bostock's D3 Zoomable Sunburst example

<br></br> Ported from this Observable notebook for this forum thread. Many thanks to Bryan Gingechen who answered my question about the necessary steps to get from an (Observable) JavaScript notebook to a vanilla JavaScript index.html. He presented his solution on blockbuilder.org

MIT Licensed

Similar vizzes