How davidnmora/d3-dynamic-graph works
d3-dynamic-graph is a small D3 helper for creating and smoothly updating force-directed graph visualizations. A consumer supplies graph nodes and links, a selected container, and D3; the returned API updates the visualization as graph data changes. The implementation also provides force-layout positioning, node dragging, tooltip display, and neighbor highlighting. The source excerpt is partial, so the graph includes only relationships shown in the excerpt or documented in the README.
Main entry points: d3-dynamic-graph.js DynamicGraph API
Components 7
Other components
- Consumer
- DynamicGraph API
src/d3-dynamic-graph.js - Graph updates
src/d3-dynamic-graph.js - Force simulation
src/d3-dynamic-graph.js - Node interactions
src/d3-dynamic-graph.js - SVG visualization
src/d3-dynamic-graph.js - D3.js
Connections 8
- Consumer → DynamicGraph API: creates with
README.md - DynamicGraph API → Graph updates: returns update API
README.md - DynamicGraph API → D3.js: uses
src/d3-dynamic-graph.js - DynamicGraph API → SVG visualization: creates canvas and tooltip
src/d3-dynamic-graph.js - Graph updates → Force simulation: updates layout
src/d3-dynamic-graph.js - Graph updates → SVG visualization: updates nodes and links
src/d3-dynamic-graph.js - Force simulation → SVG visualization: positions on tick
src/d3-dynamic-graph.js - SVG visualization → Node interactions: handles node events
src/d3-dynamic-graph.js