Skip to main content
100%

Fork of D3.js collapsible tree with boxes

✓ Published0🌍 Public
YYuji
Last edited Jul 23, 2021
Created on Jul 23, 2021

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.

AI-generated description

This is a description using Markdown.

MIT Licensed

Similar vizzes