Activity-2.7.2
✓ Published0🌍 Public
This example displays a social network graph with nine nodes and eight links, representing people and their connections. Nodes are rendered as blue-outlined pink stars rather than circles, with labels showing each person's name. The graph uses d3.forceSimulation with link, charge, collision, and center forces to position the elements inside an SVG. Node dragging is handled through d3.drag, and arrowheads are defined using SVG markers. Data comes from a local graph.json file, with the visualization employing a categorical color scale from d3.
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