Skip to main content
100%

Fork of D3 v5 Zoomable Sunburst

✓ Published0🌍 Public
LLeandro
Last edited Aug 17, 2022
Created on Aug 17, 2022

This interactive sunburst diagram shows the hierarchical structure of the Flare dataset, with each arc segment representing a category and its size proportional to the data value. Clicking a segment zooms in to reveal that node’s children, while clicking the central circle returns to the previous level, using smooth transitions. The visualization is built with D3 v5, leveraging `d3.partition`, `d3.arc`, and `transition.attrTween` for animation. Data is loaded asynchronously via the Observable stdlib’s `require` and rendered as SVG with color encoding from `d3.scaleOrdinal` and `d3.interpolateRainbow`.

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