🌍 Public
Viewing a saved revision (read-only)
0cf712fd57aa4cf8b6a25ef27e2fd275
d3 example
This example demonstrates a basic force-directed network layout with three nodes and two links, arranged through simulated physics. The visualization logs each simulation tick to the console rather than rendering to the screen. Using d3.forceSimulation, it applies d3.forceManyBody for repulsion, d3.forceLink for connection constraints, and d3.forceCenter to anchor the layout. The data consists of simple JavaScript objects for nodes and links defined inline in index.js. The example runs within an HTML page that loads d3 v7 from a CDN and executes the bundled script.
AI-generated description