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
Sshehab-ali
Last edited Mar 8, 2022
Created on Mar 8, 2022

A d3 tree diagram presents the hierarchical structure of world countries, organized by continent and region from the root "World" node down to individual nations. The visualization uses an indented layout with horizontal connecting links, where node labels are rendered as text, and zooming is enabled through an interactive pan-and-zoom mechanism. The diagram is built with the d3 v5 library, employing the `tree`, `hierarchy`, `linkHorizontal`, and `zoom` functions to compute the layout, draw SVG paths for links, and manage viewport transformations. Data comes from a JSON file that mirrors the UN geoscheme classification.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed