Stop Force Layout on d3js and start free dragging nodes

前端 未结 2 1834
感动是毒
感动是毒 2021-02-09 02:10

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

2条回答
  •  旧时难觅i
    2021-02-09 02:34

    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

提交回复
热议问题