Skip to main content
100%

World Countries Tree

✓ Published0🌍 Public
KKanakDhawan
Last edited Dec 4, 2019
Created on Dec 4, 2019

This interactive visualization displays the hierarchical structure of world countries, organized by continent and subregion, using a D3.js tree layout. The SVG rendering presents a horizontal dendrogram where country names appear as text nodes, with font size decreasing at deeper levels to indicate hierarchy. The visualization loads hierarchical JSON data and uses D3's `hierarchy` and `tree` layouts to compute positions, while `linkHorizontal` generates the curved connecting paths. Pan and zoom functionality is implemented through D3's `zoom` event handler, and the styling incorporates the Playfair Display font with a green color scheme for the tree links.

AI-generated description
MIT Licensed

Similar vizzes