Skip to main content
100%

ICE 8 - Family_Tree_Srinivas

✓ Published0🌍 Public
Ssrinivasaraosankula
Last edited Mar 30, 2023
Created on Mar 30, 2023

This example visualizes a family tree using D3.js v5 within a React framework. It shows hierarchical relationships among named individuals, with nodes colored by depth level: red for the root, blue for the first generation, and green for deeper descendants. The code uses `d3.stratify` to convert flat parent-child data into a hierarchy and `d3.tree` to compute node positions. Links are drawn as cubic bezier curves, and the SVG output includes labeled text for each family member.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes