Skip to main content
100%

Family Tree

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

This family tree visualization displays a hierarchy of family members as circles connected by lines, with each person’s name placed inside its corresponding node. The layout, generated from a dataset of parent–child pairs, uses D3.js v6 with the `stratify()` method to build the hierarchy and the `tree()` layout algorithm to position nodes. The SVG renderer draws each circle with a fill color from the data (defaulting to yellow) and connects parent and child nodes with straight-line paths. Text labels are added to each circle using D3’s selection and `.text()` method, with a bold 20px font size.

AI-generated description

Family Tree

MIT Licensed

Similar vizzes