Skip to main content
100%

bhargava- Family tree

✓ Published0🌍 Public
Bbhargavarathod
Last edited Apr 5, 2022
Created on Apr 4, 2022
Forked from HTML Starter

This family tree visualization uses a node-link diagram to display three generations of a family, with circles representing individuals and curved paths connecting parents to children. The tree layout is computed using the `d3.stratify()` and `d3.tree()` APIs from D3 v5, with circle colors determined by each node's depth in the hierarchy (red for roots, blue for middle generation, green for leaves). The data is hardcoded in the script, and the SVG rendering includes text labels for each person's name.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes