Skip to main content
100%

fetch D3 v5 Zoomable Sunburst

✓ Published0🌍 Public
MMark Lam
Last edited Jan 12, 2022
Created on Jan 11, 2022

A zoomable sunburst chart visualizes the hierarchical Flare dataset, showing interactive drill-down and zoom-out navigation across nested categories. Built with D3 v5, this SVG-based example uses d3.partition to lay out nodes as concentric rings, with d3.arc generating the path geometry and d3.scaleOrdinal with an interpolateRainbow palette for color encoding. Clicking a node triggers a smooth transition via transition.attrTween, animating the arc angles to focus on the selected subtree while fading labels 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