D3.js collapsible tree with boxes
✓ Published0🌍 Public
This example shows a collapsible tree diagram where each node is rendered as a labeled box, with child nodes expandable or collapsible by clicking. It visualizes hierarchical JSON data representing nodes with types, versions, and link directions. The tree uses D3.js v3 layout and SVG rendering, with zoom and drag support via `d3.behavior.zoom`. Nodes are color-coded by type, and the layout dynamically recalculates height and width based on the tree’s depth and breadth. Animated transitions smooth node repositioning during updates.
AI-generated descriptionThis is a description using Markdown.
MIT Licensed