Skip to main content
100%

Tree

✓ Published0🌍 Public
Ppreethamkesa
Last edited Apr 3, 2022
Created on Apr 3, 2022

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 description
MIT Licensed

Similar vizzes