The Simplest Family tree (Ancestry)
✓ Published0🌍 Public
This interactive family tree demonstrates a hierarchical ancestry diagram built with React and D3.js. A root node labeled "Yu" branches into children and grandchildren, with each node rendered as a colored SVG circle and text label, connected by pink curved links. Clicking any node toggles its child branches, animating the tree’s layout transitions using D3’s `d3.layout.tree` and `d3.svg.diagonal`. Node fills and strokes are styled dynamically from data properties, and the 750-millisecond transitions rely on D3’s `transition.attr` methods.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed