Fork of D3.js collapsible tree with boxes
This example presents a collapsible tree visualization where each node is rendered as a labeled box, with the tree structure loaded from a JSON file containing nodes, types, and link directions. The visualization uses D3.js v3’s `d3.layout.tree` to compute the node positions and animates collapses and expands on click. SVG elements and CSS styles define the boxes, links, arrows, and tooltips, while D3’s zoom behavior allows pan and zoom. The tree is dynamically sized based on its depth and breadth, and node colors vary by type.