Force-Directed Graph
✓ Published0🌍 Public
This example shows a force-directed graph of a small network with three nodes representing locations in Missouri and Illinois, connected by undirected links. The visualization uses D3’s `d3.forceSimulation` with `d3.forceLink`, `d3.forceManyBody`, and `d3.forceCenter` to compute a layout, rendering nodes as steelblue circles and links as black lines in SVG. Data comes from a local `data.json` file fetched via `fetch()`, and the simulation updates node and link positions through a `"tick"` event. The page is built as a single HTML document with embedded CSS and JavaScript, run within the React starter environment on VizHub.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed