Skip to main content
100%

A tree with links between branches.

✓ Published2🌍 Public
Rrainyrainyguo
Last edited Nov 21, 2020
Created on Nov 21, 2020

This example renders a tree diagram with branches that cross-link to other nodes, revealing the underlying connections in a hierarchical dataset. The visualization uses D3.js v3 to build the tree layout and draw custom cubic Bézier curves between linked nodes, adding a visual distinction from standard hierarchical edges. The data is generated procedurally, creating a random tree structure with a specified maximum depth and child count, and then selecting random pairs of nodes to create cross-links. The animation supports regenerating the data with a button click, causing the tree and its cross-links to redraw dynamically.

AI-generated description
MIT Licensed

Similar vizzes