Skip to main content
100%

Gist b26bbc6a33a02bf25f57402d560ffdef

✓ Published0🌍 Public
PPeleke
Last edited Feb 22, 2020
Created on Feb 22, 2020

This example visualizes a network of nodes and links using a force-directed layout. The code employs d3.forceSimulation to compute positions and uses SVG elements for rendering. It reads data from a local JSON file containing nodes and edges, with node size and color mapping to connected degree. The interaction includes dragging nodes, which re-heats the simulation, and a zoom/pan behavior on the containing group. The implementation relies on d3.drag and d3.zoom to manage these user-driven updates.

AI-generated description

Similar vizzes