Skip to main content
100%

Family Tree_lewis

✓ Published0🌍 Public
AABCDB15
Last edited Apr 4, 2022
Created on Apr 4, 2022
Forked from Family Tree

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 description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes