Skip to main content
100%

Tree

✓ Published0🌍 Public
SSNarasimhar
Last edited Jul 8, 2022
Created on Jul 8, 2022
Forked from HTML Starter

This example shows a hierarchical tree diagram of a royal family lineage, with a central "King" node branching to four sons, each of whom further connects to two grandsons. The tree is rendered as an SVG using D3.js v6. The visualization uses an animated transition to draw the connecting links from each parent to its children over one second, while nodes appear as red circles with white text labels. The code leverages D3’s `stratify()` to structure the parent-child data and `tree()` layout to compute node positions.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes