D3 v5 Zoomable Sunburst
This interactive sunburst diagram displays the hierarchical flare dataset with zoomable partitions. Built with D3 v5, it uses d3.partition and d3.hierarchy to compute angular layout, with d3.arc rendering SVG paths. Clicking a slice zooms into that subtree via transition.attrTween, interpolating arc geometry and adjusting fill-opacity and label visibility. Labels rotate using SVG transforms, and the color scale uses d3.scaleOrdinal.
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