🌍 Public
Viewing a saved revision (read-only)
a07d6ce917664ce388f08ecb88c94eea
Familytree
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