Skip to main content
100%

Force Brush

✓ Published0🌍 Public
FFrissAnalytics
Last edited Oct 1, 2018
Created on Dec 8, 2016

A force-directed graph of character co-occurrences from *Les Misérables* allows interactive selection of nodes via a rectangular brush. Dragging the brush highlights nodes within the selected region in red, while an empty brush click deselects all nodes. Using `d3.layout.force` for the physics simulation and `d3.svg.brush` for selection, the graph colors nodes by their group with a category20 scale, drawing links weighted by co-occurrence strength.

AI-generated description

forked from <a href='http://bl.ocks.org/zrlram/'>zrlram</a>'s block: <a href='http://bl.ocks.org/zrlram/2522963'>d3 force layout with brushing and selecting of nodes</a>

mit Licensed

Similar vizzes