D3 v5 Zoomable Sunburst
This zoomable sunburst visualizes the hierarchical Flare dataset, showing the relative sizes of categories and subcategories as concentric arcs that expand and contract with animation on click. Built with D3 v5, it uses `d3.hierarchy`, `d3.partition`, and `d3.arc` to compute the layout, while transitions via `transition.attrTween` animate changes between zoom levels. Color is assigned using `d3.scaleOrdinal` with an interpolated rainbow palette, and the data is loaded asynchronously via the Observable `@observablehq/flare` module.
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