Skip to main content
100%

World Countries Tree

✓ Published0🌍 Public
Jjlongwellchc
Last edited Oct 1, 2019
Created on Sep 17, 2019
Forked from Blank Canvas

This visualization displays the hierarchical structure of world countries, organized by continent and subregion using a horizontal tree layout. The code uses D3 v5’s `tree` layout and `hierarchy` function to compute node positions, with `linkHorizontal` generating curved paths for parent-child connections. Text labels are rendered with font sizes scaled by node depth, and a `zoom` interaction enables panning and scaling of the entire SVG canvas. The data comes from a local JSON file outlining geographic groupings.

AI-generated description

This stopped working for zoom. Beats me.

MIT Licensed

Similar vizzes