Fork of D3 v5 Zoomable Sunburst
This interactive sunburst diagram visualizes the hierarchical Flare dataset, displaying the relative sizes of categories and subcategories as concentric arcs. Users can click on any arc to zoom into that branch, with smooth animated transitions between views. The visualization uses D3 v5’s `d3.partition` layout and `d3.arc` generator to compute arc geometry, while `transition.attrTween` and `d3.interpolate` animate changes. A categorical color scale assigns hues to top-level nodes, and labels rotate and fade based on arc visibility thresholds. The data is loaded from an Observable-hosted JSON 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