Fork of Force Directed Graph with single links
✓ Published0🌍 Public
This force-directed graph demonstrates how to render a single link between any two nodes. It visualizes relationships between people and animals from a nested JSON data file, using D3 v6’s `d3.forceSimulation`, `d3.forceLink`, and `d3.forceCenter` to position nodes and edges. Node icons are loaded from an external image manifest and displayed with SVG `<image>` elements, while link labels and arrowheads are drawn using `<path>` and `<textPath>` elements. The example also supports dragging and clicking nodes to fix or select them.
AI-generated descriptionA basic force directed graph to show one link between any two nodes.
MIT Licensed