Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Fork of ICE8 - Social Network Graph

Public visualization

Viewing a saved revision (read-only)

cf4c9cb8ef364a4bb6c32c4f1b5da1e0

Fork of Fork of ICE8 - Social Network Graph

0 stars0🌍 Public
PPriyanka7002
Last edited Apr 3, 2022
Created on Apr 3, 2022

This example visualizes a social network as a force-directed graph, with red circular nodes representing individuals and black lines indicating connections such as “family with” or “friend with” relationships. The graph uses `d3.forceSimulation` with `forceLink`, `forceManyBody`, `forceCollide`, and `forceCenter` to position nodes dynamically. Dragging is enabled via `d3.drag`, and hovering highlights nodes using a CSS class. Data is loaded from a JSON file, and the graph is rendered as SVG elements (`<circle>`, `<line>`, `<text>`), with marker arrows defined in `<defs>`.

AI-generated description