Skip to main content
100%

Fork of Fork of ICE 8 - Family Tree

✓ Published0🌍 Public
PPriyanka7002
Last edited Apr 3, 2022
Created on Apr 3, 2022

This example shows a family tree as a set of interconnected nodes and links, with each person labeled and colored by their depth in the hierarchy. It uses `d3.stratify()` to convert a flat list of parent-child pairs into a tree structure, then `d3.tree()` to compute the layout. The SVG rendering draws circles for nodes, cubic Bézier paths for links, and text labels. Colors vary by depth, with maroon for depth 2, black for depth 1, and purple for the root, using d3.v5 within a React framework.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes