Skip to main content
100%

Tree Example

✓ Published0🌍 Public
Sshmouelsamares
Last edited Mar 6, 2023
Created on Mar 1, 2023
Forked from HTML Starter

An interactive collapsible tree diagram displays hierarchical data from a hardcoded JavaScript array, with a single root node ("seat") branching into five child nodes. The visualization, built with the D3.js library (version 3.5.17) and rendered as SVG, uses animated transitions to redraw nodes and links when a node is clicked, expanding or collapsing its children. The tree layout algorithm (d3.layout.tree) positions nodes vertically by depth, while d3.svg.diagonal draws the curved links between parent and child nodes.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes