Skip to main content
100%

Fork of D3 v5 Zoomable Sunburst

✓ Published0🌍 Public
RRonald Ngounou
Last edited Jun 13, 2024
Created on Jun 13, 2024

This zoomable sunburst chart visualizes the hierarchical structure of the Flare dataset, with arc segments representing files and folders, and their angular size encoding file size. Built with D3 v5, the chart uses `d3.partition`, `d3.arc`, and `d3.select` to render SVG paths and labels, and `d3.interpolateRainbow` for coloring. Clicking a segment zooms in on that subtree, triggering a 750 ms animation via `g.transition().duration(750)` and `attrTween` to smoothly redraw arcs and labels based on the new root.

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