block by mbostock 0adcc447925ffae87975a3a81628a196

Modifying a Force Layout II

Full Screen

This example modifies a force-layout with transitions for smooth enter and exit. An interesting technique here is the use of transition.attrTween to keep the exiting links connected to the moving nodes, even after the links have been removed from the link selection.

index.html