Skip to main content
100%

Network Graph

✓ Published0🌍 Public
NNagateja99
Last edited Jul 16, 2023
Created on Jul 16, 2023
Forked from Hello VizHub

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 description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes