Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

World Countries Tree

Public visualization

World Countries Tree

0 stars2🌍 Public
Xxschiu
Last edited Feb 10, 2020
Created on Feb 10, 2020

This interactive visualization displays the hierarchical structure of world countries, organized by continent and subregion, using a horizontal tree layout. It loads country data from a JSON file and renders it as an SVG with D3’s `tree` and `hierarchy` functions, connecting nodes with `linkHorizontal` paths. Text labels scale in font size by depth, and the entire view can be panned and zoomed via D3’s `zoom` handler applied to a group element.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed