Skip to main content
100%

Fork of D3 v5 Zoomable Sunburst

✓ Published0🌍 Public
Jjimmyjs1607
Last edited Apr 19, 2021
Created on Apr 19, 2021

This interactive sunburst visualizes the hierarchical flare dataset, showing the relative sizes of its categories and subcategories. Clicking an arc zooms into that branch, expanding its children while collapsing others. Built with D3 v5, the chart uses `d3.partition`, `d3.hierarchy`, and `d3.arc` to render the sectors, with smooth zoom transitions driven by `transition.attrTween`. Color scales via `d3.scaleOrdinal` and `d3.interpolateRainbow`, and the layout adjusts dynamically on each click, with SVG elements and animations powered by the standard D3 library.

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