Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of World Countries Tree

Public visualization

Fork of World Countries Tree

0 stars0🌍 Public
Iidohadoker
Last edited Mar 12, 2023
Created on Mar 12, 2023

This tree diagram shows the hierarchical structure of world countries, organized by continent and subregion. The visualization uses a horizontal icicle layout where the root node "World" branches into continents like Asia, which further divide into regions and individual countries. The hierarchical data is loaded from a JSON file and rendered with D3 v5, using the `tree()` layout function to compute node positions and `linkHorizontal()` to generate the connecting paths. Pan and zoom functionality is enabled through D3's `zoom()` event handler, which transforms the SVG group containing the entire tree.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed