Skip to main content
100%

Network_graph

✓ Published0🌍 Public
Cchandanagandla
Last edited Apr 13, 2023
Created on Apr 13, 2023

This example visualizes a small social network as a force-directed graph, showing nine named individuals and their weighted connections. Nodes render as violet circles with red outlines and black name labels, while links appear as pink lines whose thickness reflects the connection weight. The graph uses the older `d3.layout.force` API with `gravity`, `distance`, and `charge` parameters, reading node and link data from a local `graph.json` file. Users can drag nodes interactively, and the layout updates continuously via the force tick event, with SVG elements styled directly in the page’s CSS.

AI-generated description
MIT Licensed

Similar vizzes