D3 v5 Zoomable Sunburst
This example presents a zoomable sunburst visualization of hierarchical data from the Flare dataset, rendered as an interactive donut chart in SVG. The visualization uses D3 v5’s `d3.partition` and `d3.hierarchy` to compute angular and radial layouts, with `d3.arc` drawing each segment. Users click a node to zoom into that subtree, triggering a 750ms animated transition where `transition.attrTween` interpolates arc geometries and label transforms. The color scale uses `d3.interpolateRainbow`, and data is loaded via the Observable Stdlib `require` function.
AI-generated descriptionMike Bostock's D3 Zoomable Sunburst example
- with D3 v5 (based on the changes in v5)
<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