Skip to main content
100%

World Countries Hierarchy

✓ Published1🌍 Public
Yyejichun@naver.com
Last edited Jul 28, 2021
Created on Jul 28, 2021
Forked from Blank Canvas

This visualization displays the hierarchical relationships between world regions, subregions, and countries using a horizontal tree layout. The data is structured as a nested JSON hierarchy, with nodes representing continents, regions, and individual nations. The code uses D3 v7’s `tree()` layout and `linkHorizontal()` generator to position and draw the connecting paths, while node labels are rendered as SVG text elements with sizes scaled by node depth. A zoom behavior is applied to the SVG container for panning and scaling.

AI-generated description
MIT Licensed

Similar vizzes