Skip to main content
100%

A2Q7

✓ Published0🌍 Public
MmNamratha25
Last edited Jul 21, 2023
Created on Jul 21, 2023
Forked from ICE-8 Family Tree

This example displays a family tree as an animated SVG diagram. The data consists of family member names organized into parent-child relationships. Using `d3.stratify` and `d3.tree`, the layout positions nodes by generation, with each generation assigned a distinct fill color. Links animate from parent to child positions via `transition().duration(1500)`, while nodes fade in as circles before labels appear. The code uses D3 v6 to bind data to SVG elements, creating a clear, color-coded hierarchy of three generations.

AI-generated description
MIT Licensed

Similar vizzes