A
✓ Published0🌍 Public
This interactive tree visualization displays hierarchical data from a JSON file using D3.js v5 and React. The visualization presents nodes as colored circles—green for parent nodes and red for leaf nodes—connected by animated horizontal links. Users can click on circles to collapse or expand subtrees, with smooth transitions updating the layout. The implementation uses d3.hierarchy, d3.tree, and d3.linkHorizontal for position calculations, while SVG elements and CSS transitions handle the rendering and animation effects.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed