Skip to main content
100%

ICE8_SocialNetwork

✓ Published0🌍 Public
Ssrividya-bachina
Last edited Mar 30, 2023
Created on Mar 30, 2023
Forked from ICE8_Tree

This example visualizes a small social network of five people, showing friendship links between them with directed arrows and labels. The network uses a force-directed layout created with `d3.forceSimulation`, applying `forceLink`, `forceManyBody`, `forceCollide`, and `forceCenter` to position nodes. Nodes are rendered as yellow circles with SVG text labels, and links are drawn as blue lines with arrow markers. The data is loaded from a local `data.json` file, and nodes support drag interactions via `d3.drag` to reposition them.

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