This post describes how to build a circular packing with groups in d3.js. Three groups are represented: they are highlighted with different colors and are attracted toward different position. See more circular packing example in the dedicated section.
forceX()
is applied to each group: that's why they are obviously located in different part of the svg
area.