Skip to main content
100%

D3 v5 Zoomable Sunburst

✓ Published0🌍 Public
EElouiza Hamla
Last edited Jan 17, 2020
Created on Jan 17, 2020

This zoomable sunburst visualization displays hierarchical data from the Observable flare dataset through a radial partition layout. The visualization uses D3 v5’s `d3.arc`, `d3.partition`, and `d3.hierarchy` APIs to render SVG paths and labels. Clicking on a partition smoothly zooms into that node using `transition.attrTween` with interpolated arc angles, while a central circle resets the view. Colors are assigned via `d3.scaleOrdinal` with an interpolated rainbow palette, and labels rotate to remain readable throughout the animation.

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