D3 v5 Zoomable Sunburst
This interactive sunburst diagram displays the hierarchical structure of the Flare software package, with each arc segment representing a module and its angular size proportional to the module’s value. Users can click any segment to zoom into that subtree, smoothly animating the layout as the focus shifts. The visualization is built with D3 v5, using `d3.partition` to compute the layout and `d3.arc` for rendering SVG paths. Transitions are animated via `transition.attrTween` and `d3.interpolate`. The code loads data from the Observable standard library’s `@observablehq/flare` dataset and applies a rainbow color scale.
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