Skip to main content
100%

Neighborhood Pull

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

This example demonstrates applying d3-drag to a force-directed graph computed with d3-force. Nodes are circles rendered in SVG, with links drawn as lines between them. Dragging a node fixes it to the pointer; double-clicking a node selects its neighborhood (the node and its immediate neighbors), which then reacts to the dragged node by being released from their fixed positions. The graph uses the Les Misérables character co-occurrence dataset, and nodes are colored and styled based on their group and selection state.

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.

Double-click to select a neighborhood, which will react to the dragged node.

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>

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

gpl-3.0 Licensed

Similar vizzes