Skip to main content
100%

Cold Force Dragging

✓ Published0🌍 Public
Aakollegger
Last edited Aug 30, 2017
Created on Aug 25, 2017

This example applies d3-drag to a force-directed graph computed with d3-force, rendering nodes and links as SVG circles and lines. Dragging a node fixes it to the pointer for the duration of the gesture. Unlike similar examples, when the simulation settles, every node is pinned to its final position, keeping the graph "cold"; only dragged nodes move. Clicking a node selects it, and the selected node is highlighted with a black outline. The data is the classic Les Misérables character co-occurrence network.

AI-generated description

This example demonstrates applying d3-drag to a force-directed graph computed using d3-force. When the drag gesture starts, the targetted node is fixed to the pointer; it is released when the gesture ends.

Unlike 'Force Dragging I', the simulation remains “cold” after it has settled. All nodes retain fixed positio.

Compare to the Canvas version.

forked from <a href='http://bl.ocks.org/mbostock/'>mbostock</a>'s block: <a href='http://bl.ocks.org/mbostock/2675ff61ea5e063ede2b5d63c08020c7'>Force Dragging I</a>

forked from <a href='http://bl.ocks.org/akollegger/'>akollegger</a>'s block: <a href='http://bl.ocks.org/akollegger/54c4be03e148c625217df1984e1c3908'>Force Dragging I</a>

gpl-3.0 Licensed

Similar vizzes