Skip to main content
100%

Social Network Graph

✓ Published0🌍 Public
UUVarshaReddy
Last edited Jul 22, 2023
Created on Jul 22, 2023
Forked from Hello VizHub

A social network graph displays five people as circular nodes connected by five undirected edges, with labels identifying each person. The visualization uses D3 v5’s `d3.forceSimulation` with `d3.forceManyBody`, `d3.forceLink`, and `d3.forceCenter` to position nodes and links dynamically. Hardcoded data defines the nodes and links, and the SVG container updates on each simulation tick to draw lines, circles, and text labels.

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