Skip to main content
100%

Assignment 2 Question 7 Social network

✓ Published0🌍 Public
Lleftymadi
Last edited Jul 13, 2023
Created on Jul 13, 2023
Forked from Hello VizHub

This example displays a social network of named individuals connected by friendship links, rendered as an interactive node-link diagram in SVG with colored circles and text labels. It loads data from a local `graph.json` file and uses D3 v6’s `d3.forceSimulation`, `d3.forceLink`, `d3.forceManyBody`, `d3.forceCollide`, and `d3.forceCenter` to position nodes. Drag behavior and hover styling are implemented with D3’s drag handlers and CSS classes, with link thickness controlled by edge values.

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