Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Social Network Graph --> ICE-8

Public visualization

Viewing a saved revision (read-only)

7717c10bab1647859655a992fcd88720

Fork of Social Network Graph --> ICE-8

0 stars0🌍 Public
Mmounishnaidu96@gmail.com
Last edited Apr 3, 2024
Created on Apr 3, 2024

This example shows a social network graph where nodes represent people and links represent shared attributes such as occupation. The code uses D3.js v6 with a force-directed layout via `d3.forceSimulation`, applying `d3.forceLink`, `d3.forceManyBody`, and `d3.forceCenter` to position the nodes. Each node is rendered as a blue circle with an SVG text label, and links are drawn as lines with a fixed stroke width. The simulation updates node and link positions on each tick, translating node groups accordingly. The data structure is defined inline with sample placeholders for nodes and links.

AI-generated description