All examples By author By category About

yonester

Draggable Cluster Dendrogram

The code here was copied directly from Mike Bostock's Cluster Dendrogram example, with a small addition of the dragging functionality. Any node can be dragged around and its children will come along for the ride with it. The trick is just to make sure that the entire subtree remains intact by moving all of the relevant nodes by the same offset.