Social Network Graph
✓ Published0🌍 Public
This interactive social network graph visualizes friend relationships among eight individuals using a force-directed layout. The visualization employs D3’s forceSimulation with link, charge, collision, and center forces to arrange nodes, while edges with arrow markers indicate directed friendships. Users can drag nodes, and hovering highlights connections through CSS class changes. The code loads data from a local JSON file and renders the network as SVG elements, including circles for people and labeled text, using D3 v6.
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