Network Graph
✓ Published1🌍 Public
This example shows a social network graph of ten people connected by friendship links. Each person appears as a labeled circle, with nodes positioned by a force-directed layout and links drawn as lines with arrowheads. Users can drag nodes to rearrange the network. The code uses `d3.forceSimulation` with `forceLink`, `forceManyBody`, and `forceCollide` to handle physics, and D3's drag behavior for interaction. Data is loaded from a local JSON file containing nodes and links with relationship metadata, and the visualization is rendered as SVG with custom styling.
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.
MIT Licensed