Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

World Countries Tree

Public visualization

Viewing a saved revision (read-only)

d62737b934c54eecb38b2dec8a6655ab

World Countries Tree

0 stars0🌍 Public
Mmin
Last edited Oct 18, 2019
Created on Oct 18, 2019

A hierarchical tree visualization displays the world’s countries, grouped first by continent and then by subregion, using a left-to-right layout. The D3 v5 code loads a JSON file and applies the `tree` and `hierarchy` layouts to position nodes, while `linkHorizontal` generates the connecting paths. Text labels, with font sizes decreasing by depth, are drawn for every node, and a zoom interaction via `d3.zoom` allows users to pan and scale the SVG graphic.

AI-generated description