Fork of Canvas Force Tutorial
✓ Published0🌍 Public
This example visualizes a force-directed network of people and their weighted connections. It uses D3 v5’s `d3.forceSimulation` with `forceLink`, `forceX`, `forceY`, `forceCollide`, and `forceManyBody` to position nodes, and renders the graph on a Canvas element via the 2D context’s `arc`, `moveTo`, and `lineTo` methods. Data is loaded from a CSV file specifying source, target, and weight. The simulation updates the drawing on each tick, producing an animated, interactive layout.
AI-generated descriptionMIT Licensed