Activity 8 Q6B
✓ Published0🌍 Public
This example shows a social network graph of people connected by friendship links, with each node labeled by name and laid out in a force-directed arrangement. The graph is rendered as an SVG using D3 v6, with green circles representing individuals and blue directed edges with arrow markers indicating relationships. The layout is computed with `d3.forceSimulation`, using link, charge, collision, and center forces to position nodes, while drag interaction is enabled via `d3.drag`. Node colors are assigned with a simple color scale, and data is loaded from a local `graph.json` file.
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