Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Circle packing within force graph nodes in D3?

I have a Force Directed Graph that I've generated with D3 and within each node (which are represented as large circles) I'd like to pack in a bunch of smaller circles using D3's Circle Packing. Is it possible to use both of these layouts in one visualization? How does one insert a layout into a node?

like image 561
guidoism Avatar asked Nov 04 '22 05:11

guidoism


1 Answers

I figured it out once I realized that svg elements were just regular dom nodes and I could manipulate them with jquery. I ended up created two svg locations, one for display and one for creation of svg objects. I built one object at a time in the builder location and then moved it off to somewhere else in order to work on the next guy. When I was ready I built the force graph on the main display and populated the nodes there with the circle packed nodes that I had saved off somewhere else.

like image 148
guidoism Avatar answered Nov 13 '22 05:11

guidoism