Accepted answer

You can set the minimum size of the circles using different approaches. This answer deals with pack.radius:

If radius is specified, sets the pack layout’s radius accessor to the specified function and returns this pack layout.

First, we set a scale. You can see that the minimum value here is 20 (and the maximum is 50):

var sizeScale = d3.scaleSqrt()

Then, we use that scale in pack.radius:


Here is a demo using the same code you linked, from Mike Bostock:

Related Query

More Query from same tag