D3 4.0’s pack layout has been improved by computing the smallest enclosing circle for each node. Compare to D3 3.x’s implementation.