Skip to main content
100%

D3 v5 Zoomable Sunburst

✓ Published1🌍 Public
AAPPSWEBD
Last edited Mar 4, 2020
Created on Mar 4, 2020

This interactive sunburst chart visualizes the hierarchical structure of the Flare dataset, showing file sizes as angular arc lengths. Users navigate the hierarchy by clicking on any segment, which re-centers the visualization on that node's subtree. The implementation is built with D3 v5, using the `d3.arc` generator and `d3.partition` layout to compute segment geometry. Colors are assigned via `d3.scaleOrdinal` with a rainbow interpolation. Clicking triggers a smooth 750-millisecond transition, with `attrTween` and `d3.interpolate` animating the arcs and labels, while the view resets when clicking the innermost circle.

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