Sign inSign up

D3 force-directed relationship graph (original work)

Add-ons
2026-07-26 04:26 6 views • 0 downloads 7.4KB
D3 force-directed relationship graph (original work)

Last updated: 2019/8/5 3:42:29 PM

Changelog:Added

(1) Zoom in and out using the mouse wheel

(2) Drag circular nodes to reposition them. After releasing the mouse button, the nodes remain in their new positions instead of returning to their original positions, preventing unwanted movement.


The code includes complete comments. You only need to pass a JSON string (links) to the page to use it normally. Simple and convenient.