Collapsible Tree Hierarchy - Real Data
✓ Published1🌍 Public
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 descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed