Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

World Countries Tree

Public visualization

World Countries Tree

0 stars0🌍 Public
SSharvariPhadke
Last edited Jan 24, 2021
Created on Jan 24, 2021
Forked from Making a map

This visualization presents the hierarchical structure of world countries organized by continent and subregion, using a tree layout that branches from a central “World” node. Country names appear at varying font sizes based on their depth in the hierarchy, with linking paths connecting parent and child nodes. The implementation uses D3 v5’s `tree`, `hierarchy`, and `linkHorizontal` functions to compute the layout, while `zoom` enables interactive panning and scaling. Data is loaded from a JSON file, and the SVG rendering applies a custom Playfair Display font with white text shadows for readability.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed