Skip to main content
100%

Fork of D3 v5 Zoomable Sunburst with local json

✓ Published1🌍 Public
LLiml
Last edited Apr 5, 2024
Created on Apr 2, 2024

This fork of the D3 zoomable sunburst visualizes the hierarchical flare dataset, displaying nested categories and their values as concentric rings. Users can click arcs to zoom and explore the tree structure. The code uses D3 v5 libraries, including `d3.hierarchy`, `d3.partition`, and `d3.arc`, to generate the interactive graphic. It loads data from a local `flare.json` file and obtains arc color values from the included `styles.css`. The example demonstrates adapting an Observable notebook to a standalone vanilla JavaScript `index.html` file, using methods like `d3.select` and `d3.style` for styling and interaction.

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