Social Network graph
✓ Published3🌍 Public
This example shows a social network graph with seven named nodes and six weighted links, rendered as an interactive SVG. Users can drag nodes, which then move according to a force-directed layout. The visualization uses `d3.layout.force` from D3 v4 to apply gravity, link distance, and charge parameters, and updates node positions via the `force.on("tick")` event. The graph data is loaded from a JSON file referencing nodes by name and links by array indices. Node circles and text are styled via CSS, with link stroke width proportional to link weight. The code also includes an unused reference to D3 v2.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed