ICE-8 Family Tree
✓ Published0🌍 Public
This example shows an animated family tree with color-coded generations, from a single root ancestor down through descendants. The tree uses D3’s `d3.stratify()` to convert flat parent-child data into a hierarchy and `d3.tree()` to compute node positions. SVG circles and text labels render each family member, while paths animate from parent to child nodes via `transition().duration()`.Generation colors are assigned by depth using a switch function, and all nodes and links transition smoothly into place, making the lineage structure easy to follow.
AI-generated descriptionA demonstration of how to start using D3 version 6.
MIT Licensed