Skip to main content
100%

D3 v5 Zoomable Sunburst 1216

✓ Published0🌍 Public
DDavid-Wong110723
Last edited Dec 16, 2021
Created on Dec 16, 2021

This zoomable sunburst visualization displays the hierarchical structure of the Flare data, showing nested categories as concentric arcs whose angular width and radius encode the relative sizes of branches and leaf nodes. Clicking a segment zooms into that subtree, smoothly animating the layout as the clicked node becomes the new root. The D3 v5 code uses `d3.partition` and `d3.hierarchy` for layout, `d3.arc` for path geometry, and `d3.transition` with `attrTween` to interpolate arc positions and angles during zoom animations. A sequential rainbow color scale assigns hues to top-level branches.

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