Skip to main content
100%

Fork of Family Tree

✓ Published0🌍 Public
Kkalyanikotha
Last edited Apr 3, 2022
Created on Apr 3, 2022

This example shows a family tree visualization with color-coded nodes for each person, arranged hierarchically from a single root ancestor down through multiple generations. The tree renders as an SVG, with horizontal links connecting parent and child nodes, and labels sized according to depth in the hierarchy. The code uses d3.hierarchy and d3.tree to compute the layout, and d3.linkHorizontal for the curved connecting paths. A d3.zoom handler enables panning and zooming the entire visualization. Node colors and text are drawn from the JSON data, with a custom Playfair Display font applied via CSS.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes