Family Tree_lewis
✓ Published0🌍 Public
This example shows an interactive family tree visualization built with D3.js, displaying hierarchical relationships among family members using a collapsible tree layout rendered as SVG. The visualization loads JSON data containing the family structure and renders each person as a colored, clickable node connected by labeled links, with names and relationships displayed inline. Using D3 v3’s tree layout, the code dynamically computes node positions, applies zoom and drag behavior via `d3.behavior.zoom`, and animates node expansions and collapses with `transition.attrTween`. Tooltips appear on hover, and the tree supports mouse-wheel zoom and panning for exploration.
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