D3 v5 Zoomable Sunburst
A zoomable sunburst visualization displays hierarchical data from the Flare dataset, with each ring segment representing a category and its value. The visualization uses D3 v5's partition layout to render the tree structure as an interactive SVG, allowing users to click on any arc to zoom into that branch. The code builds the sunburst from a JSON file using d3.partition and d3.hierarchy, with the root node always visible at the center. The implementation is ported from an Observable notebook and uses the D3.js library with the SVG rendering approach.
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