Skip to main content
Public

Share visualization

Loading preview…

Fork of Fork of Social network

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Fork of Fork of Social network

0
PPran6728
Last edited Mar 28, 2023
Created on Mar 28, 2023

This visualization maps a social network of ten people, using nodes and directed links to show “Friend with” relationships. The code uses `d3.forceSimulation` with forces for link distance, charge, collision, and centering, rendering the SVG with circles and text labels. A custom drag interaction allows nodes to be repositioned. The data is loaded from a JSON file, and marker-end arrows indicate link direction. Hover styling highlights nodes via a CSS class toggled in mouseover and mouseout events.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed