Skip to main content
100%

Collapsible Tree Example

✓ Published0🌍 Public
Dd3noob
Last edited Nov 30, 2019
Created on May 3, 2014

This example shows a collapsible tree diagram where each node displays an image and a text label. The visualization uses a static, hard-coded dataset embedded in the code, with nodes positioned by depth and connected by curved links. Built with D3.js version 3, it employs `d3.layout.tree` for the layout, `d3.svg.diagonal` for the paths, and SVG elements for rendering. Node images are loaded from local files, while link strokes are colored dynamically based on the target node’s “level” property.

AI-generated description

This is an example of a tree digram where the nodes are images.

Many thanks to nbhatta who asked the question of how this could be done on d3noob.org.

It is used as an example and described in the book D3 Tips and Tricks.

mit Licensed

Similar vizzes