Skip to main content
100%

Organization network graph

✓ Published0🌍 Public
Nn.koldovsky@gmail.com
Last edited Aug 6, 2021
Created on Aug 6, 2021
Forked from HTML Starter

This example visualizes a small organizational network with three nodes—Arts Web, Community Visio, and Silicon Valley—connected by two links, rendered as circles and lines in an SVG. It uses D3’s `forceSimulation`, `forceManyBody`, `forceLink`, and `forceCenter` to position the nodes dynamically, with the charge strength set to -3000 to repel them. Labels are drawn as SVG text elements, and the simulation’s tick event updates circle positions, line endpoints, and label coordinates. The code imports data from a local `data.js` file and runs in a React-compatible setup with d3.v7.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes