Skip to main content
100%

ICE-8 Family Tree

✓ Published0🌍 Public
VVenkat-Dhulipalla
Last edited Apr 10, 2023
Created on Apr 10, 2023
Forked from D3 Starter

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 description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes