force_node_simple
✓ Published1🌍 Public
This example shows a simple force-directed network graph rendered as SVG, displaying labeled circular nodes and weighted links. It loads node and link data from a JSON file and uses the d3.layout.force API from d3.v2 to simulate physics with configurable gravity, distance, and charge. Each link’s stroke width reflects its weight value, and nodes are draggable via d3.force.drag. A tick handler updates line coordinates and node transforms continuously.
AI-generated descriptionReact Starter code.
MIT Licensed