Skip to main content
100%

Fork of Fork of D3 Starter

✓ Published0🌍 Public
Rrevanthdasari10@gmail.com
Last edited Apr 12, 2026
Created on Apr 12, 2026
Forked from Fork of D3 Starter

This example shows a family tree as a hierarchical node-link diagram, with color-coded nodes that distinguish generations: red for the root, blue for grandparents, green for parents, and orange for children. Using D3.js v7, it builds the hierarchy with `d3.stratify()` and lays it out with `d3.tree()`, then renders the structure as an SVG. The code draws black links as lines and labels each node with text, positioning all elements based on the computed tree coordinates.

AI-generated description
MIT Licensed

Similar vizzes