Skip to main content
100%

Zoomable Sunburst

✓ Published0🌍 Public
Mmikefmc2005
Last edited May 18, 2023
Created on May 18, 2023

This interactive visualization displays a hierarchical sunburst chart of the Flare software package, with concentric rings representing nested categories and colored segments sized by node value. Clicking a segment animates the view to zoom into that node, expanding its children outward while receding other branches. Built with D3 v5, the example uses `d3.partition`, `d3.arc`, and `d3.hierarchy` to compute the layout, with smooth transitions driven by `transition.attrTween` and `d3.interpolate`. Data loads from the `@observablehq/flare` dataset.

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