Skip to main content
100%

Barkha ZS

✓ Published0🌍 Public
BBarkha305
Last edited Jul 3, 2023
Created on Jul 3, 2023

This interactive zoomable sunburst diagram visualizes the hierarchical structure of the Flare data set. Users can click on any arc to zoom into that category and explore its subcategories, with the central circle returning to the root. Built with D3 v5, the visualization uses `d3.partition`, `d3.arc`, and `d3.hierarchy` to compute the layout, while animated transitions for arcs and labels are handled via `transition.attrTween` and `d3.interpolate`. The SVG renders with a rainbow color scale using `d3.scaleOrdinal` and displays text labels oriented along each arc.

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