🌍 Public
Viewing a saved revision (read-only)
008e08d5c40945a098ede14b5d401f75
A tree with links between branches.
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