🌍 Public
Viewing a saved revision (read-only)
3855e7886c714ad3b057ee35ac7bdb38
bargraph
This example shows a static tree diagram generated by D3 v4, laying out a small binary hierarchy of nodes and links with `d3.tree()` and `d3.hierarchy()`. The visualization renders in an SVG using `d3.linkHorizontal()` for curved paths and circle-plus-text labels for each node. The code builds the tree data programmatically from a root object, assigns positions via `tree(root)`, and applies transform translation to group elements for placement.
AI-generated descriptionInteractive tree fractal with Canvas.
Move the mouse to change the branching!
Draws from HTML5 Examples.
Extended to use high resolution Canvas for high pixel density displays.