Fork of Canvas Force Tutorial
This example shows a force-directed network graph rendered on a Canvas element using d3 v5. Nodes and links are drawn as circles and straight lines, positioned by a d3.forceSimulation with forceX, forceY, forceCollide, forceManyBody, and forceLink forces. The graph loads its edge list from a CSV file (data.csv), which contains source, target, and weight fields, and updates the visualization on each simulation tick via the canvas 2D context.