Fork of D3.js collapsible tree with boxes
✓ Published0🌍 Public
This example presents a collapsible tree diagram rendered as colored boxes, with each node displaying a label, version, and type. It uses D3.js v3 with the `d3.layout.tree` API and SVG elements to create an interactive hierarchy, where clicking a node expands or collapses its children. The tree is initialized from a JSON file that contains the node hierarchy, including link names and directions. The code includes features such as zooming and dragging through `d3.behavior.zoom`, and it dynamically adjusts the SVG dimensions based on the tree's depth and maximum width.
AI-generated descriptionMIT Licensed