Skip to main content
Public

Share visualization

Loading preview…

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

Network

21
SSahil Thapa
Last edited Oct 26, 2025
Created on Oct 26, 2025
Forked from HTML Starter

A small force-directed network graph renders six labeled nodes connected by six links in an SVG. Circles show people (Alice, Bob, Carol, Dave, Eve, Frank) with a teal fill, while gray lines represent connections. The layout uses `d3.forceSimulation` with `forceLink`, `forceManyBody`, and `forceCenter` to position elements. Users can drag any node, which pins it temporarily via the drag handler that sets fixed coordinates (`d.fx`, `d.fy`). Node and link positions update on each simulation tick, and text labels offset to the right of each circle.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed