Skip to main content
100%

D3.js collapsible tree with boxes

✓ Published0🌍 Public
Ttkhurana
Last edited Apr 27, 2020
Created on Apr 27, 2020

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 description

This is a description using Markdown.

MIT Licensed

Similar vizzes