Collapsible Tree
This collapsible tree visualization displays hierarchical data from a JSON file, showing parent-child relationships with nodes that expand and collapse when clicked. The tree layout positions nodes horizontally by depth, with curved diagonal links connecting them. The visualization uses D3.js v3 with the `d3.layout.tree` for layout computation and `d3.svg.diagonal` for drawing curved paths. Nodes are rendered as SVG circles with text labels, and click interactions toggle children visibility using the `_children` property to store collapsed nodes. The animation uses D3 transitions with a 750ms duration to smoothly move nodes and links between positions, with nodes initially appearing collapsed at the root level.
AI-generated descriptionAn interactive version of a Reingold–Tilford tree. Click on the nodes to expand or collapse.
forked from <a href='http://bl.ocks.org/renecnielsen/'>renecnielsen</a>'s block: <a href='http://bl.ocks.org/renecnielsen/9904888'>Collapsible Tree</a>