Skip to main content
100%

CS 360 Assignment 7 - Force Directed Graph in d3

✓ Published1🌍 Public
SSean Sanchez
Last edited Mar 29, 2022
Created on Mar 26, 2022
Forked from HTML Starter

This visualization shows a node-link diagram of the Zachary Karate Club social network, with nodes representing members and edges representing their interactions. A force-directed layout positions the nodes as the simulation runs, with each node colored via a categorical scale and displaying its ID on mouseover. The code uses d3.forceSimulation with d3.forceLink, d3.forceManyBody, and d3.forceCenter to drive the layout, rendering SVG circles and lines that update on every tick. Data comes from the SOC-KARATE dataset loaded as CSV, with interaction handling and color assignment based on node IDs.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

original dataset found here

https://networkrepository.com/soc-karate.php

code for network data parsing and mouseover interaction sourced from these examples below

https://observablehq.com/@d3/force-directed-graph

https://d3-graph-gallery.com/graph/network_basic.html

http://bl.ocks.org/eggchul/4f7b66224adecb2796f685447cd12448

MIT Licensed

Similar vizzes