Skip to main content
100%

D3 v5 Zoomable Sunburst

✓ Published1🌍 Public
SSumittiwari654
Last edited Nov 28, 2019
Created on Nov 28, 2019

This example presents a zoomable sunburst visualization of hierarchical data from the Flare dataset, rendered as an interactive donut chart in SVG. The visualization uses D3 v5’s `d3.partition` and `d3.hierarchy` to compute angular and radial layouts, with `d3.arc` drawing each segment. Users click a node to zoom into that subtree, triggering a 750ms animated transition where `transition.attrTween` interpolates arc geometries and label transforms. The color scale uses `d3.interpolateRainbow`, and data is loaded via the Observable Stdlib `require` function.

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