Skip to main content
100%

Collapsible Tree Example

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

This example shows a static tree diagram generated from flat, parent-child data, with nodes and links rendered as SVG circles and paths. The code converts the flat data into a hierarchical tree structure using `d3.layout.tree` and draws it with `d3.svg.diagonal` for the curved links. It relies on the D3.js library (version 3.5.17) and uses standard SVG elements like `circle`, `text`, and `path` for visualization. The diagram is fixed-depth, with no interactive collapse or update behavior.

AI-generated description

This is a simple d3.js tree diagram that is generated from 'flat' data 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