Skip to main content
100%

Collapsible Tree Hierarchy - Real Data

✓ Published1🌍 Public
QQuinn Sebso
Last edited May 14, 2024
Created on May 7, 2024

A collapsible tree hierarchy displays real hierarchical data, with nodes that expand and collapse on click. It also enables navigation by re-rooting the tree view to the clicked node, while a stack tracks the path back to previous roots. The visualization uses d3.v6’s tree layout and transitions, rendering SVG circles and text labels with animated updates. A node-info div shows details for the selected item, and the canvas height dynamically adjusts to fit the visible hierarchy.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes