Force Layout with Mouseover Labels
✓ Published0🌍 Public
Mmbostock
Last edited Feb 9, 2016
Created on Sep 12, 2011
This example visualizes a character co-occurrence network from *Les Misérables*, using a force-directed layout to position nodes. Hovering over a node highlights it by turning the circle black and revealing its text label. The implementation uses D3 v3’s `d3.layout.force` and `d3.geom.voronoi` to create invisible cell paths around each node, expanding the hover target area. Nodes and links are rendered as SVG circles, lines, and paths, with data loaded from a JSON file.
AI-generated descriptiongpl-3.0 Licensed