Skip to content

Instantly share code, notes, and snippets.

View aziele's full-sized avatar

Andrzej Zielezinski aziele

View GitHub Profile
@GerHobbelt
GerHobbelt / .gitignore
Created July 8, 2012 14:41
d3.js: force layout; click to group/bundle nodes
# Editor backup files
*.bak
*~
@donaldh
donaldh / README.md
Created June 12, 2012 22:36
force-multi-foci with convex hulls

I have modified the force-multi-foci example to add a convex hull around each cluster of nodes.

I achieved this by using d3.nest() to create a new dataset of clusters containing the nodes in each cluster. Then in the tick() method I create and update the path element for each cluster in this dataset.