cookies sunburst
A zoomable sunburst chart visualizes the hierarchical flare dataset, with arcs sized by value and colored by top-level category. Clicking a node zooms to focus on that branch, while a central circle returns to the root. Built with D3 v5, it uses `d3.hierarchy`, `d3.partition`, and `d3.arc` for geometry, with animated transitions via `transition.attrTween` and `d3.interpolate`. Labels rotate and fade based on arc visibility. Data loads asynchronously from the `@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