Skip to main content
Public

Share visualization

Loading preview…

Fork of Social Network graph

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 Social Network graph

2
NNaimisha-M
Last edited Jul 8, 2022
Created on Jul 8, 2022

This fork of a social network graph visualizes nine individuals ("Rohith" through "ravi") as labeled nodes connected by weighted green links, with node positions determined by a force-directed layout. The example loads data from `graph.json` and renders it as SVG using D3’s legacy `d3.layout.force` API from d3.v2/v4, setting gravity, charge, and link distance parameters. Each node appears as a circle with a blue text label, and link stroke-width reflects the `weight` value from the JSON data. Users can click and drag nodes to reposition them, with the `force` tick handler updating link coordinates and node transformations.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed