a layout on top of d3.pack layout to make circles visually more visible for some cases. Tested with d3 version 3.
After applying pack layout, apply circle layout like following
(new d3CircleLayout(nodes)).apply();
Here is the visual difference between standard pack layout and circle layout.