Stop Force Layout on d3js and start free dragging nodes

10,429

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

Share:
10,429
riccardo.tasso
Author by

riccardo.tasso

Semantic Web Data Miner.

Updated on June 13, 2022

Comments

  • riccardo.tasso
    riccardo.tasso almost 2 years

    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

    enter image description here

    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?

  • Henry
    Henry over 8 years
    Better than a stop/start button! Thanks a lot!