Skip to main content
100%

cookies sunburst

✓ Published0🌍 Public
HHgeginat
Last edited Jun 13, 2022
Created on Jun 13, 2022

A zoomable sunburst chart visualizes the hierarchical flare dataset, with arcs sized by value and colored by top-level category. Clicking a node zooms to focus on that branch, while a central circle returns to the root. Built with D3 v5, it uses `d3.hierarchy`, `d3.partition`, and `d3.arc` for geometry, with animated transitions via `transition.attrTween` and `d3.interpolate`. Labels rotate and fade based on arc visibility. Data loads asynchronously from the `@observablehq/flare` module.

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