Skip to main content
100%

Unislink Network

✓ Published0🌍 Public
HHariharan1828
Last edited Jun 12, 2023
Created on Jun 12, 2023
Forked from HTML Starter

This example demonstrates a small, three-node network graph using D3’s force-directed simulation. It shows two links connecting Alice to Bob and Bob to Carol, with nodes positioned through a combination of many-body repulsion, link attraction, and centering forces. The code initializes the simulation with `d3.forceSimulation`, then applies `d3.forceManyBody`, `d3.forceLink`, and `d3.forceCenter` to compute the layout, logging a message on each tick to confirm the simulation is running. The nodes and links are defined as plain JavaScript arrays.

AI-generated description
MIT Licensed

Similar vizzes