Assignment 2 7B network graph
✓ Published0🌍 Public
This example visualizes a small network of ten named nodes and their connections using a force-directed layout. It shows a simple social or organizational graph where nodes are labeled with names, and links between them are displayed as black lines. The visualization relies on D3.js’s `d3.forceSimulation` API to run the physics-based layout, combining `d3.forceLink`, `d3.forceManyBody`, and `d3.forceCenter` forces. Node and link positions are updated on each simulation tick via a render function that sets SVG attributes for circles, lines, and text labels.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed