Skip to main content
100%

Assignment 2 network graph

✓ Published1🌍 Public
Ppasyasahas
Last edited Jul 20, 2023
Created on Jul 20, 2023
Forked from Hello VizHub

This D3.js network graph visualizes a force-directed layout of ten labeled nodes (A through J), each representing a person’s name, connected by ten undirected links. The simulation uses `d3.forceSimulation` with a link force (at a distance of 100), a many-body charge force for repulsion, and a center force to keep the graph balanced. Nodes are rendered as light-blue circles with text labels, and links as black lines, all drawn as SVG elements. The `render` function updates node and link positions on each simulation tick.

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