Skip to main content
100%

names

✓ Published0🌍 Public
Kkottenikhil
Last edited Apr 13, 2023
Created on Apr 13, 2023
Forked from MY Tree ICE-8

This example shows a family tree rendered as an interactive hierarchical diagram using D3.js. The visualization displays a root node ("nikhil") with four children, each branching to two leaf nodes, demonstrating a simple three-level genealogy structure. The tree layout positions nodes vertically based on depth, with collapsible behavior triggered by clicking any node. The code uses D3’s `layout.tree()` and `svg.diagonal()` functions, with SVG elements styled via CSS, while animated transitions between states are handled by D3’s `.transition()` method over 750 milliseconds.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes