🌍 Public
Viewing a saved revision (read-only)
6dbdd1045d8644f1b8074838ed73cc1a
Fork of Tree
A vertical family tree visualizes four generations of Game of Thrones houses, with color-coded nodes by depth and labeled leaf descendants. It uses the D3 v7 tree layout with `d3.hierarchy` and `d3.tree()` to compute positions, rendering SVG paths via `d3.linkVertical` for parent-child edges. Circular nodes and bold text labels are appended as SVG groups, with a `scaleOrdinal` mapping depth to thematic colors. The static example emphasizes clear hierarchical spacing through a fixed 1200px canvas width.
AI-generated description