Force-Directed Graph V7
✓ Published1🌍 Public
A force-directed graph visualizes application interfaces from CSV data, mapping each application to a colored circle with its name in a text label. The simulation uses d3.forceSimulation with forceManyBody, forceLink, forceCenter, and forceCollide to position nodes, while links are drawn as lines between connected applications. The code parses nodes and links from CSV files, assigns colors from a palette, and supports drag interaction to reposition nodes, restarting the simulation on each drag.
AI-generated descriptionCreating a force-directed graph, based on data of two csv-files.
Sources: - Scatter Plot: https://www.youtube.com/watch?v=xkBheRZTkaw&t=37528s
- force-directed graph: https://www.youtube.com/watch?v=y7DxbW9nwmo
- documentation: https://github.com/d3/d3-force
- Accessor with named sources and targets: https://github.com/d3/d3-force#link_id
Text, Color, Drag: https://youtu.be/y7DxbW9nwmo?t=1696
Filter:
MIT Licensed