Force-Directed Graph with Drag/Zoom/Pan/Center/Resize/Labels/Shapes/Filter/Highlight
This interactive force-directed graph displays network data with draggable nodes, zoom and pan controls, and double-click-to-center functionality. Nodes vary in size, shape, and color based on properties like score and type, with text labels that avoid occlusion. The visualization supports filtering by node shape, score, and link strength, plus hover highlighting of first-order neighborhoods and click-to-fade effects. Built with D3 v3, it uses d3.layout.force for simulation and d3.behavior.zoom, rendering as SVG with data loaded from a JSON file.
AI-generated descriptionForce directed Graph with:
- Dragable nodes
- Zoom and pan (with maximum effective-size limit for zoomed elements)
- Double-click to center node
- Resizable window (with zoom/pan-aware relocation of center of gravity)
- Text labels (which are not occluded by nodes; flag to set centered/offset)
- Properties determine node size and shape, and node and link colors (with default values; flag to set fill/outline).
- Filter nodes by shape (c,d,r,s,t,x), by score (l,h,m), if orphan (0), and filter links by score (1,2,3)
- Hover to highlight 1st-order neighborhood. Click to fade surroundings
- Read graph from json file
forked from <a href='http://bl.ocks.org/eyaler/'>eyaler</a>'s block: <a href='http://bl.ocks.org/eyaler/10586116'>Force-Directed Graph with Drag/Zoom/Pan/Center/Resize/Labels/Shapes/Filter/Highlight</a>