Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Family Tree

Public visualization

Viewing a saved revision (read-only)

a45db272cd494f6baf5564e709ec274a

Family Tree

0 stars0🌍 Public
Bbtsehay
Last edited Feb 20, 2023
Created on Feb 20, 2023
Forked from HTML Starter

This interactive family tree visualizes hierarchical relationships using D3.js’s tree layout, with nodes as white circles connected by gray links. Users can click a node to collapse or expand its children, and double-click a node’s label to edit names in place via a foreignObject input. The rendering uses SVG paths with smooth `transition` animations for node and link repositioning. Zooming is enabled through `d3.zoom`, scaling the entire diagram between 0.1× and 10×. The code defines the tree structure with `d3.hierarchy` and `d3.tree`, and updates positions dynamically during interactions.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.