Skip to main content
Public

Share visualization

Loading preview…

Fork of 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 Network Graph

0
Nnikhitha693
Last edited Apr 4, 2022
Created on Apr 4, 2022
Forked from Network Graph

This example shows a small force-directed network graph of entities related to a murder case, with seven labeled nodes (such as "Murder," "Victim 1," and "Suspect 1") connected by weighted links. It uses D3 v4’s `d3.layout.force` to position the nodes, with a gravity of 0.05 and charge of -100, while the SVG rendering draws circles and text labels. Link stroke width encodes the weight field from the JSON data, and nodes are draggable via `force.drag`. The graph loads its structure from `graphFile.json`.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed