Skip to main content
100%

D3 v5 Zoomable Sunburst

✓ Published0🌍 Public
MMKALM
Last edited Jul 28, 2020
Created on Jul 28, 2020

This interactive visualization displays a zoomable sunburst chart representing the hierarchical file structure of the Flare data. Using D3 v5's `d3.hierarchy` and `d3.partition`, the code computes the radial layout and renders it as SVG, with arcs colored by top-level category. Clicking a node triggers a 750ms animated transition via `g.transition()`, interpolating the arc geometry with `transition.attrTween`. The visualization loads the dataset through `observablehq.Library` from the `@observablehq/flare` module, with labels and arcs fading based on visibility thresholds.

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