Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Social network by Praneeth

Public visualization

Fork of Social network by Praneeth

0 stars1🌍 Public
PPran6728
Last edited Mar 28, 2023
Created on Mar 27, 2023

This social network visualization displays ten individuals as circular nodes connected by lines to represent friendship links, with the data read from `data.json`. Each node is labeled with a person's name and rendered as a 75-pixel-radius circle, while links use arrow markers to indicate directed relationships. The network layout is computed using several force-directed physics simulations from D3 version 6, including `d3.forceSimulation` for the overall physics, `d3.forceLink` for link-based attraction, `d3.forceManyBody` for repulsion between nodes, and `d3.forceCollide` to prevent overlap. Nodes are draggable, and hovering highlights the selected node with a thicker stroke via mouseover and mouseout event handlers.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed