I'm using the force layout to represent a directed unweighted network. My inspiration comes from the following example: http://bl.ocks.org/mbostock/1153292
Since my own data are really a mess, I'd like to stop the layout and move nodes by dragging them manually. I'd also like that the movement of a node doesn't change the position of others. And it's necessary that links become longer, to reach the node which has been moved.
Is there a simple way to do this?
At the end I found this related question which implements a solution which I'll adopt.
D3 force directed graph with drag and drop support to make selected node position fixed when dropped
http://bl.ocks.org/norrs/2883411
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With