Skip to main content
100%

Fork of D3.js collapsible tree with boxes

✓ Published0🌍 Public
SStefany
Last edited Mar 8, 2023
Created on Mar 8, 2023

This example presents a collapsible tree visualization where each node is a labeled box, colored by type, and connected by curved links with arrows. The tree expands and collapses nodes with animated transitions. It uses the D3.js v3 layout `d3.layout.tree` and applies a breadth-first traversal to size the SVG canvas dynamically, color nodes, and resolve collisions. Pan and zoom are enabled via `d3.behavior.zoom`, and custom tooltips appear on hover. The data comes from a JSON file with nested node objects.

AI-generated description

This is a description using Markdown.

MIT Licensed

Similar vizzes