D3 v5 Zoomable Sunburst
This interactive visualization presents a zoomable sunburst chart of the Flare data hierarchy, where clicking a ring segment smoothly transitions the view to that level. The chart encodes hierarchical relationships as concentric rings, with arc length proportional to values and colors assigned by top-level category. Built with D3 v5, it uses the `d3.partition()` layout, `d3.arc()` for path geometry, and CSS transitions driven by `transition.attrTween` to animate changes. The example loads data from the `@observablehq/flare` package and renders everything as SVG elements.
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