Social Media Network - Assignment 8
✓ Published0🌍 Public
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 descriptionSocial 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
- Open
index.htmlin a web browser - Hover over nodes to see interaction effects
- Click and drag nodes to reposition them
- The network will automatically layout using force-directed simulation
MIT Licensed