Collapsible Tree Hierarchy Reformatted - Real Data
✓ Published0🌍 Public
This interactive collapsible tree visualization displays hierarchical data as an SVG with animated transitions between expanded and collapsed states. Users click nodes to re-root the tree and reveal child nodes, while a dynamic info panel shows the selected node’s ID and name. Built with d3.v6 and React, it uses the `transition()` API for smooth resizing and layout updates, with node positions computed via `root.descendants()` and `root.links()`. The rendering relies on SVG elements, including circles and text, styled with CSS. The dataset originates from a real source, as indicated in the example’s metadata.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed