fetch D3 v5 Zoomable Sunburst
A zoomable sunburst chart visualizes the hierarchical Flare dataset, showing interactive drill-down and zoom-out navigation across nested categories. Built with D3 v5, this SVG-based example uses d3.partition to lay out nodes as concentric rings, with d3.arc generating the path geometry and d3.scaleOrdinal with an interpolateRainbow palette for color encoding. Clicking a node triggers a smooth transition via transition.attrTween, animating the arc angles to focus on the selected subtree while fading labels based on visibility thresholds.
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