Collapsible Tree Example
✓ Published0🌍 Public
PPragyagarg
Last edited Oct 16, 2018
Created on Oct 15, 2018
This collapsible tree example displays a small hierarchical dataset in a static, left-to-right node-and-link diagram. The code converts a flat array of name–child pairs into a tree structure, then uses the d3.layout.tree and d3.svg.diagonal APIs to position nodes and draw curved links. Rendered as an SVG with white circles and gray paths, the visualization uses a fixed-depth layout where each level is offset vertically by 80 pixels. No interactive collapse or expand behavior is implemented despite the title.
AI-generated descriptionBuilt with blockbuilder.org
mit Licensed