Skip to main content
100%

Art Tree

✓ Published3🌍 Public
CCurran Kelleher
Last edited Oct 5, 2018
Created on Sep 20, 2018

The Art Tree example displays a hierarchical tree layout of world geographical regions and countries, with data derived from a nested JSON structure. The visualization uses D3 v5's `tree` and `hierarchy` functions to compute node positions, and renders horizontal curved links between parent and child nodes via `linkHorizontal` paths in SVG. The tree spans the full browser viewport, with its dimensions set from `document.body.clientWidth` and `clientHeight`. Data loading is handled through the `json` method, with the resulting hierarchy laid out using `treeLayout` before drawing.

AI-generated description
MIT Licensed

Similar vizzes