Skip to main content
100%

ICE8 Family Tree

✓ Published0🌍 Public
Sshiiva-surya
Last edited Apr 11, 2023
Created on Apr 10, 2023
Forked from ICE8 Family Tree

This example renders a family tree using D3.js v5’s `d3.stratify()` and `d3.tree()` layout, displayed as SVG circles connected by cubic Bézier paths. Node colors indicate hierarchical depth—red for root, blue for depth 1, green for depth 2, and yellow for depth 3—with each node labeled by name. The input is a flat array of parent-child pairs, which the code transforms into a hierarchical structure before positioning and drawing the tree on an 900×900 SVG canvas.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes