Fork of D3 v5 Circle Packing from Observable
This example shows a circle packing visualization of the Flare software package hierarchy, with nested circles representing the hierarchical structure and size of each node. The visualization uses a sequential color scale with the interpolateMagma colormap to encode depth, and each leaf node displays its name text clipped to the circle boundary. The code is built with D3 v5 and uses the d3.pack, d3.hierarchy, and d3.scaleSequential APIs, loading data from the @observablehq/flare module. Circles are rendered as SVG circles, with hover states and tooltips showing the full ancestor path and value.
AI-generated descriptionMike Bostock's Circle-Packing 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