Skip to main content
100%

Fork of D3 v5 Zoomable Sunburst

✓ Published0🌍 Public
SShdnShmli
Last edited Nov 26, 2021
Created on Nov 26, 2021

A fork of the D3 v5 Zoomable Sunburst example, this visualization shows the hierarchical structure of the Flare dataset as an interactive, animated sunburst diagram. Clicking a node zooms into that branch, smoothly transitioning arcs and labels via `d3.transition` and `transition.attrTween`. It partitions the data with `d3.hierarchy`, `d3.partition`, and `d3.arc`, and colors arcs using `d3.scaleOrdinal` with a rainbow interpolator. The example loads data from the `@observablehq/flare` package, rendering with SVG in an HTML page.

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