World Countries Tree
✓ Published0🌍 Public
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 descriptionThis stopped working for zoom. Beats me.
MIT Licensed