D3 v5 Zoomable Sunburst
This interactive sunburst diagram visualizes the hierarchical structure of the Flare data set, showing the relative size of each category and subcategory through the angle and radius of its arc segments. Users can click on any segment to zoom in and explore deeper levels of the hierarchy, with smooth animated transitions between views. The visualization is built with D3 v5, using the `d3.partition` layout algorithm and `d3.arc` for generating the arc paths, while `d3.interpolate` and `transition.attrTween` handle the animated zooming. The color scheme is generated from a rainbow interpolation across the root categories.
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