Skip to main content
100%

Social Media Network - Assignment 8

✓ Published0🌍 Public
AAKSHAY
Last edited Nov 9, 2025
Created on Nov 9, 2025
Forked from D3 Starter

This interactive network graph maps connections among six social media platforms—Facebook, Instagram, WhatsApp, YouTube, Twitter, and LinkedIn—with color-coded nodes and labeled links. Users can drag nodes to rearrange the layout while a force-directed simulation continuously repositions elements. Built with D3 v7, the visualization uses `d3.forceSimulation`, `d3.forceLink`, `d3.forceManyBody`, and `d3.forceCenter` to compute the graph’s geometry, rendering nodes as SVG circles and links as lines. The data is defined inline as JavaScript arrays within the module.

AI-generated description

Social Media Network Visualization

A D3.js visualization showing the network connections between major social media platforms.

Features

  • Interactive network graph with 6 social media platforms
  • Nodes represent different platforms: Facebook, Instagram, WhatsApp, YouTube, Twitter, and LinkedIn
  • Color-coded nodes for easy distinction
  • Connection lines show relationships between platforms
  • Draggable nodes for interactive exploration
  • Force-directed layout for optimal node positioning

Platforms Included

  • Facebook (Red) - connects to Instagram and WhatsApp
  • Instagram (Blue) - connects to Facebook and YouTube
  • WhatsApp (Green) - connects to Facebook
  • YouTube (Purple) - connects to Facebook, Instagram, and Twitter
  • Twitter (Orange) - connects to LinkedIn and YouTube
  • LinkedIn (Cyan) - connects to Twitter

How to Use

  1. Open index.html in a web browser
  2. Hover over nodes to see interaction effects
  3. Click and drag nodes to reposition them
  4. The network will automatically layout using force-directed simulation
MIT Licensed

Similar vizzes