Fork of Force-Directed Graph IT ct with alternatin Power
This network diagram uses force-directed layout to show relationships between IT applications and infrastructure components. Nodes represent applications from a CSV file, while links show connections with varying strength values that determine link distances—stronger connections place nodes closer together. The simulation uses `d3.forceSimulation` with `forceManyBody`, `forceLink`, `forceCenter`, and `forceCollide` to position the circles. Nodes are draggable through D3's drag interaction, which fixes their positions during dragging. All elements render as SVG circles, text labels, and light gray lines.
AI-generated descriptionCreating a force-directed graph, based on data of two csv-files.
Changed the nodes to have a force value to distance the nodes from each other.
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:
open issues:
- count number of links -> change force (number of links > 1 -> push appart / number of links < 1 -> force together)
- add arrows to links
- change interf.csv (wrong source data for filters)
- add filter options