Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

D3 v5 Zoomable Sunburst

Public visualization

Viewing a saved revision (read-only)

18b3c82a53984633b1834d0168d65723

D3 v5 Zoomable Sunburst

0 stars0🌍 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

  • with D3 v5 (based on the changes in v5) <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