Collapsible Tree Example
✓ Published0🌍 Public
Dd3noob
Last edited Nov 30, 2019
Created on Jan 8, 2014
This example shows a static tree diagram with a root node branching into two levels of child nodes, using text labels and circular markers connected by curved links. The visualization renders in SVG via D3.js version 3.5, using the `d3.layout.tree` for hierarchical positioning and `d3.svg.diagonal` for link paths. The code defines a fixed dataset inline and normalizes node depth for horizontal spacing, though it lacks the interactive collapse-and-expand behavior of the original Bostock example it derives from.
AI-generated descriptionThis is a simple d3.js tree diagram used as an example in the book D3 Tips and Tricks.
It is derived from the Mike Bostock Collapsible tree example but it is a VERY cut down version without the ability to update (collapse).
mit Licensed