Skip to main content
100%

Forces network

✓ Published0🌍 Public
663anp3ca
Last edited Oct 21, 2018
Created on Oct 20, 2018

This example demonstrates a force-directed network visualization of Twitter connections among Welsh Assembly Members, rendered with D3 v4. Each node represents a politician, colored by political party, while curved, weighted links show the strength of connections between them. The force simulation uses a linear scale to map link weights to link strength, alongside collision, centering, and charge forces to position the nodes. The data is loaded from an external JSON file, and the visualization is drawn using SVG elements, with node labels and styles defined in the HTML.

AI-generated description

This is a similar example to some of my others, but this is the code I used in class on 27/03/2017 to introduce CMT212 to forces simulations in D3

forked from <a href='http://bl.ocks.org/martinjc/'>martinjc</a>'s block: <a href='http://bl.ocks.org/martinjc/af943be09a748aa747ba3a622b7ff132'>D3 - Force simulation, curved weighted links (Data: Welsh Assembly Twitter Connections)</a>

mit Licensed

Similar vizzes