Skip to main content
100%

Tree hierarchy

✓ Published1🌍 Public
VVinay Kumar Parvathini
Last edited Apr 13, 2026
Created on Apr 13, 2026

This example visualizes a social network graph with six person nodes and seven friendship links using a force-directed layout. The D3.js force simulation (`d3.forceSimulation`) positions nodes in an SVG canvas, applying link, charge, and centering forces to arrange connections naturally. Each node is rendered as a colored circle with an adjacent text label, while lines represent relationships. Users can drag nodes via `d3.drag`, which temporarily fixes their positions during interaction, and the simulation updates positions on each tick event.

AI-generated description
MIT Licensed

Similar vizzes