Skip to main content
100%

D3 v5 Zoomable Sunburst

✓ Published21🌍 Public
AAlex Levitt
Last edited Apr 21, 2019
Created on Apr 21, 2019

This D3 v5 zoomable sunburst visualizes the hierarchical structure of the flare dataset, showing file sizes across categories and subcategories. The visualization uses a radial layout where each ring represents a level of the hierarchy, with arc lengths proportional to values. Clicking on any segment zooms in, while clicking the central circle returns to the root. The implementation leverages `d3.partition`, `d3.hierarchy`, and `d3.arc` to compute geometry, with transitions animated via `transition.attrTween`. Color encoding uses `d3.scaleOrdinal` with interpolated rainbow colors based on top-level category names.

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