Family Tree
✓ Published0🌍 Public
This example displays a family tree as a hierarchical node-link diagram, with nodes colored by generation and green curved links connecting parents to children. The visualization renders in SVG and uses `d3.stratify()` to convert flat parent-child data into a hierarchy, then applies `d3.tree()` to compute the layout. Node circles, connecting paths, and name labels are appended to the SVG using data-bound selections, with custom bezier curves drawn for each link.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed