Skip to main content
100%

Fork of D3 v5 Zoomable Sunburst v1

✓ Published0🌍 Public
OOwer
Last edited Jan 23, 2023
Created on Jan 23, 2023

This interactive sunburst diagram visualizes a hierarchical dataset through nested, color-coded arcs that zoom and pan with click interactions. Built with D3 v5, it uses `d3.hierarchy` and `d3.partition` to compute layout, while `d3.arc` generates each segment. Transitions animate via `transition.attrTween` and interpolated arc paths, with labels rotating and fading based on visibility criteria. The data originates from the `@observablehq/flare` package, rendered as SVG with responsive scaling.

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