Force Directed Graph Starter
✓ Published6🌍 Public
This example demonstrates a basic force-directed network graph with three connected nodes arranged through physical simulation. A D3 force simulation (`d3.forceSimulation`) combines charge, link, and centering forces to position the nodes, while SVG circles and lines represent the data. The code uses d3 v6 with explicit imports for `select`, `forceSimulation`, `forceManyBody`, `forceLink`, and `forceCenter`, rendering circles for nodes and black lines for edges in an SVG container. The simulation updates node and link positions on each tick event, showing a minimal starter template for network visualizations.
AI-generated descriptionMIT Licensed