Skip to main content
100%

D3 v5 Zoomable Sunburst

✓ Published0🌍 Public
AAdam Detrick
Last edited Feb 28, 2020
Created on Feb 28, 2020

This interactive sunburst chart visualizes a hierarchical taxonomy, allowing users to click on any arc to zoom into that branch and explore its nested categories. Each ring segment represents a node, with size encoding the accumulated value of its descendants. Built with D3 v5, the visualization uses `d3.partition`, `d3.hierarchy`, and `d3.arc` to compute and draw the layout, while a `transition.attrTween` smoothly animates the arcs and labels during zoom transitions. The SVG rendering and color scales are applied directly through D3 selections.

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