This is a demonstration of d3-fuse, a clustering library that allows the visual fusion of nodes that are overlapping.
The branching tree on each node cluster shows the nodes that comprise that cluster based on node overlap. Due to a moving center of gravity between each step of the clustering process and radii of the clustered nodes, trees can extend slightly beyond the node disc.
This is an initial attempt at a clustering library that doesn't rely on d3-force, though the short code of d3-fuse is borrows considerably from d3.forceCollide
.
In this demonstration the mouse wheel will simulate a zoom by increasing/decreasing circle radii.
https://d3js.org/d3.v5.min.js