D3 v5 Zoomable Sunburst
This D3 v5 zoomable sunburst visualizes the hierarchical structure of the flare dataset, showing file sizes across categories and subcategories. The visualization uses a radial layout where each ring represents a level of the hierarchy, with arc lengths proportional to values. Clicking on any segment zooms in, while clicking the central circle returns to the root. The implementation leverages `d3.partition`, `d3.hierarchy`, and `d3.arc` to compute geometry, with transitions animated via `transition.attrTween`. Color encoding uses `d3.scaleOrdinal` with interpolated rainbow colors based on top-level category names.
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