🌍 Public
Viewing a saved revision (read-only)
714bf65b934e4639a3d1feabb53064d5
Network Graph
This network graph visualizes a social network of ten individuals and their friendship connections. The code uses d3.forceSimulation with forceLink, forceManyBody, forceCollide, and forceCenter to position nodes dynamically. Nodes are rendered as SVG circles with text labels, while links appear as blue lines with arrow markers. The simulation updates node and link positions on each tick, and users can drag nodes to reposition them. The data comes from a local graph.json file containing explicit node and link definitions.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.