Untitled
This example visualizes a force-directed network using D3.js, showing the interconnections between nodes as a dynamic, physics-based simulation. It employs `d3.forceSimulation` with custom link and node forces to position the elements, while the underlying graph data is loaded from a local JSON file (`data.json`). The nodes are rendered and dragged interactively, and the simulation runs in real time, updating the layout continuously. The visualization also includes a legend and color-coded connections to indicate different relationship types, providing a clear view of the network’s structure and cluster formation.