Skip to main content
100%

D3 v5 Zoomable Sunburst

✓ Published0🌍 Public
BBhavyatulasi
Last edited Apr 8, 2020
Created on Apr 8, 2020

This example demonstrates a zoomable sunburst visualization of the Flare dataset using D3 v5. It uses `d3.hierarchy` and `d3.partition` to compute the layout, with `d3.arc` for path generation. Interactive zoom transitions are implemented through click handlers and `transition.attrTween` to animate arcs and labels. The visualization renders as SVG with color scales from `d3.scaleOrdinal` and `d3.interpolateRainbow`. The data is loaded asynchronously via an Observable notebook library, with the dataset containing hierarchical filesystem-like size values.

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