D3 v5 Zoomable Sunburst
This interactive visualization displays a zoomable sunburst chart representing the hierarchical file structure of the Flare data. Using D3 v5's `d3.hierarchy` and `d3.partition`, the code computes the radial layout and renders it as SVG, with arcs colored by top-level category. Clicking a node triggers a 750ms animated transition via `g.transition()`, interpolating the arc geometry with `transition.attrTween`. The visualization loads the dataset through `observablehq.Library` from the `@observablehq/flare` module, with labels and arcs fading 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