Skip to main content
100%

Fork of Fork of Fork of Fork of D3 v5 Zoomable Sunburst

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

This zoomable sunburst diagram visualizes the hierarchical structure of the Flare data set, using nested arcs to represent each node's size and depth. Users click an arc to re-center the visualization on that subtree, with a smooth animation transitioning the layout. Built with D3 v5, the code uses `d3.partition`, `d3.arc`, and custom transition logic via `transition.attrTween` to smoothly interpolate arc geometry and label positions. The visualization renders as SVG with interactivity driven by click events on the arcs and a central circle.

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