Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Famil Tree

Public visualization

Famil Tree

0 stars1🌍 Public
VVineela Reddy
Last edited Apr 13, 2023
Created on Apr 13, 2023
Forked from Fork of Famil Tree

This example shows a family tree as an animated SVG diagram, with 15 nodes representing individuals connected by parent-child links. The visualization uses D3 v6’s `d3.stratify` to convert flat data with child-parent relationships into a hierarchy, then `d3.tree` to compute the layout. Circles represent each person, while maroon paths draw the connections. On load, links and labels animate via `transition().duration()`, with text fading in based on each node’s depth. The code employs SVG circles, paths, and text elements, styled with aqua fills and maroon strokes, to render the tree centered within the viewport.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed