Skip to main content
100%

NIKHIL ICE 8 Family Tree

✓ Published0🌍 Public
NNikhilMakkena
Last edited Apr 2, 2022
Created on Mar 30, 2022
Forked from HTML Starter

This interactive family tree visualizes four generations of a family, with nodes representing individuals and links showing parent-child relationships. Users can click any node to expand or collapse its descendants, with smooth animations transitioning nodes between states. The diagram updates in real time, repositioning the tree layout to accommodate the visible structure. The visualization uses D3.js version 3.5, specifically the `d3.layout.tree` and `d3.svg.diagonal` APIs, to generate the hierarchical layout and curved links. Colors encode generation level: green for the first, blue for the second, purple for the third, and red for the fourth. The underlying data is hardcoded as a JSON tree structure within the script.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes