Skip to main content
100%

ICE 8 Family Tree d3.js

✓ Published2🌍 Public
SSrilekha24
Last edited Apr 4, 2022
Created on Apr 4, 2022

This example builds a family tree visualization using D3.js v5 and SVG. It maps a flat list of parent-child name pairs through `d3.stratify()` and `d3.tree()` into a hierarchical layout, drawing curved link paths between generations. Each person appears as a colored circle, with fill color determined by tree depth via a switch on `d.height`, and a text label beside each node. The tree spans 860 by 310 pixels, with light blue, salmon, and green shades distinguishing lineage levels.

AI-generated description

Making a basic emoji using D3.js & SVG(Scalable Vector Graphics)

MIT Licensed

Similar vizzes