Fork of ICE - 8 Tree
✓ Published1🌍 Public
This example presents a family tree as an animated node-link diagram, encoding each person as a circle node with a text label and connecting parent-child relationships as straight black links. The visualization uses d3.stratify to convert the flat data array into a hierarchy and d3.tree() to compute layout positions within an SVG. On rendering, links and circles transition their attributes (such as `d` and `r`) over durations, while node labels fade in with a staggered delay based on depth, creating a sequential reveal effect. The code directly selects the body element, appends an SVG, and applies custom styling for teal circle fills on a light blue background.
AI-generated descriptionMIT Licensed