Skip to main content
100%

D3 v5 Zoomable Sunburst

✓ Published0🌍 Public
Ccmsodi
Last edited May 25, 2020
Created on May 24, 2020

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 description

Mike Bostock's D3 Zoomable Sunburst example

<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

MIT Licensed

Similar vizzes