Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Network

Public visualization

Fork of Network

0 stars0🌍 Public
Cchandanamahesh0215@gmail.com
Last edited Nov 3, 2025
Created on Nov 3, 2025
Forked from Network

This network visualization displays relationships between movie characters, with each node color-coded and shaped by role: Hero (blue star), Villain (red triangle), Sidekick (green circle), and Mentor (orange square). The example builds a force-directed graph using `d3.forceSimulation` with link, charge, and center forces, rendering nodes as SVG paths via D3’s symbol API. Links are drawn as lines, and labels follow node positions during the simulation. Nodes are draggable using D3’s drag interaction, which restarts the simulation with a higher alpha target for responsive movement.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed