Skip to main content
100%

Fork of Tree Example: ICE-8

✓ Published0🌍 Public
BBoyka
Last edited Jun 16, 2023
Created on Jun 16, 2023

A fork of the D3.js tree example, this visualization displays a family tree for the Reddy lineage, using an animated, collapsible hierarchy. Each node represents a family member, with the node’s fill color determined by its generation level, while parent-child links are drawn as smooth cubic Bézier curves using a diagonal path generator. The code leverages the `d3.layout.tree` API and SVG `circle` and `text` elements to render the structure, with names and parent relationships provided in a hard-coded JavaScript array. Node clicks trigger animations to expand or collapse branches, controlled by the `transition` function.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes