Skip to main content
100%

Family tree

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

This example shows a family tree as a hierarchical node-link diagram, with colored circles representing individuals and curved paths showing parent-child connections. The visualization uses d3.stratify to convert flat data into a hierarchy and d3.tree to compute the layout, rendering nodes as SVG circles colored by their depth in the tree (pink, orange, or red) and labeling each with the person’s name. The code runs in a React environment with D3 v5, drawing all elements as SVG shapes.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes