Skip to main content
100%

Collapsible Tree Example

✓ Published0🌍 Public
Dd3noob
Last edited Nov 30, 2019
Created on Jan 8, 2014

This example shows a vertical d3.js tree diagram with a fixed set of hierarchical data, including a top-level node with two second-level branches and further descendants. While titled "collapsible," the provided code is a simplified version that renders the tree without any interactive update or collapse functionality. The visualization uses the D3 v3 `d3.layout.tree` for layout and `d3.svg.diagonal` for link paths, with nodes drawn as white circles and labels positioned above or below each node. All elements are rendered in SVG, and the data is hardcoded in the script.

AI-generated description

This is a simple d3.js tree diagram, arranged so that the tree is vertical, as 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

Similar vizzes