Skip to main content
100%

Familytree

✓ Published0🌍 Public
SSwapna1915
Last edited Jul 17, 2023
Created on Jul 17, 2023
Forked from Family Tree

This example displays a family tree as a static SVG with animated, color-coded generations. It uses `d3.stratify()` to build the tree structure from parent-child links, `d3.tree()` to compute layout positions, and D3 transitions to animate the drawing of lime-green paths and the appearance of circles. The data is a hard-coded array of family relationships. Node and edge styling is applied through SVG attributes, with node fill colors assigned by generation depth and black text labels added directly to the SVG.

AI-generated description
MIT Licensed

Similar vizzes