Network Graph
✓ Published0🌍 Public
This example visualizes a social network as a force-directed graph, displaying ten people as nodes connected by lines that represent friendships. Nodes are rendered as large light-green circles with names, and each link includes an arrow marker indicating direction. The graph uses `d3.forceSimulation` with `forceLink`, `forceManyBody`, `forceCollide`, and `forceCenter` to position nodes, and supports dragging via `d3.drag`. Data comes from a local `graph.json` file, and the visualization is built with D3 v6, rendering entirely in SVG.
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