Skip to main content
100%

Network Graph

✓ Published0🌍 Public
Ssuryavamsi00024
Last edited Jul 10, 2023
Created on Jul 10, 2023
Forked from Hello VizHub

This example visualizes a social network as an interactive force-directed graph using D3.js. The SVG renders circular nodes labeled with person names and blue directed links with arrowheads, showing friendship connections weighted by a numeric value. The layout relies on `d3.forceSimulation` with `forceLink`, `forceManyBody`, `forceCollide`, and `forceCenter` to position the nodes. Nodes are draggable via `d3.drag`, and hovering highlights a node by adding a CSS class. Data comes from the local `graph.json` file.

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