Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

D3 v5 Zoomable Sunburst

Public visualization

Viewing a saved revision (read-only)

a76d6ff0337047aa9a440ef249ae47ee

D3 v5 Zoomable Sunburst

0 stars0🌍 Public
MMKALM
Last edited Jul 28, 2020
Created on Jul 28, 2020

This interactive visualization displays a zoomable sunburst chart representing the hierarchical file structure of the Flare data. Using D3 v5's `d3.hierarchy` and `d3.partition`, the code computes the radial layout and renders it as SVG, with arcs colored by top-level category. Clicking a node triggers a 750ms animated transition via `g.transition()`, interpolating the arc geometry with `transition.attrTween`. The visualization loads the dataset through `observablehq.Library` from the `@observablehq/flare` module, with labels and arcs fading based on visibility thresholds.

AI-generated description

Mike Bostock's D3 Zoomable Sunburst example

  • with D3 v5 (based on the changes in v5) <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