Improved Circle Packing
✓ Published0🌍 Public
Mmbostock
Last edited Feb 9, 2016
Created on Sep 15, 2015
This visualization uses D3 4.0’s improved circle-packing layout, which computes the smallest enclosing circle for each node to fit circles more tightly than earlier versions. The example displays the hierarchical Flare JSON dataset, with circle size proportional to leaf values and color distinguishing top-level branches. It renders directly to a Canvas element via the d3 pack layout, avoiding SVG’s DOM overhead. The code also includes a bundled d3-xhr library for asynchronous data fetching.
AI-generated descriptionD3 4.0’s pack layout has been improved by computing the smallest enclosing circle for each node. Compare to D3 3.x’s implementation.
gpl-3.0 Licensed