Tree
✓ Published0🌍 Public
This example shows a family tree constructed from a hardcoded array of parent-child name pairs. The visualization renders green circles connected by red links, with each person’s name displayed inside their circle. Using d3.stratify and d3.tree, the hierarchy is computed and positioned in an SVG canvas. The code animates the connections and circle radii with d3 transitions, while text fades in based on each node’s depth. The page uses a light blue background and centers the layout.
AI-generated descriptionMIT Licensed