Fork of Network graph of social connection
✓ Published0🌍 Public
This network graph visualizes social connections among nine named people, with nodes positioned by a force-directed layout and links indicating relationships. The code loads data from a JSON file and uses d3.layout.force with gravity, distance, and charge parameters to simulate node placement. Node circles are green with maroon strokes, while link thickness varies with the weight value from the data. Text labels display each person’s name, and dragging is enabled via force.drag. The visualization renders in SVG on an HTML canvas using D3 v4.
AI-generated descriptionSee also React Starter.
MIT Licensed