🌍 Public
Viewing a saved revision (read-only)
d303b567eabf4dcd91d7f2db83ecc493
RV2
This interactive zoomable sunburst diagram visualizes hierarchical data, such as product categories across cities, using a circular layout of nested arcs. Clicking an arc zooms into that subtree, while a central circle returns to the root. Built with D3 v5, it employs `d3.partition` for layout, `d3.arc` for rendering SVG paths, and `d3.interpolate` within `transition.attrTween` for smooth animated updates. Data originates from the `@observablehq/flare` module, fetched via the Observable stdlib’s `require` function.
AI-generated descriptionMike Bostock's D3 Zoomable Sunburst example
- with D3 v5 (based on the changes in v5) <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