D3 v5 Zoomable Sunburst
This interactive sunburst chart displays the hierarchical Flare dataset, where each ring segment represents a node and its angular width encodes the node's value. Clicking a segment zooms into that subtree, smoothly animating the layout using D3 v5’s `d3.partition`, `d3.hierarchy`, and `d3.arc` with `transition.attrTween` for interpolated arc paths. Labels and fill opacity update dynamically, while a central circle returns the view to the root. The visualization is rendered as SVG and uses `d3.scaleOrdinal` with an interpolated rainbow palette.
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