Skip to main content
100%

Fork of React & D3 Vibecoding Starter

✓ Published0🌍 Public
Ssaisanthoshravula@my.unt.edu
Last edited Nov 3, 2025
Created on Nov 3, 2025

This example displays a three-generation family tree using a static hierarchical layout, with color-coded nodes indicating depth. It uses D3 v7’s `d3.hierarchy`, `d3.tree`, and `d3.linkHorizontal` to position and connect nodes, rendering an SVG with circles and labels. The tree is drawn from a hard-coded JavaScript object, with edge paths and node groups appended via joins. Node fill colors are mapped by depth using `d3.scaleOrdinal`, producing a simple, beginner-friendly illustration of a tree diagram.

AI-generated description
MIT Licensed

Similar vizzes