Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

World Countries Tree

Public visualization

World Countries Tree

0 stars0🌍 Public
Mmoorephamily
Last edited Sep 27, 2018
Created on Sep 26, 2018

This example displays the hierarchical structure of world countries using a tidy tree layout, with continents as branches, subregions as intermediate nodes, and countries as leaf labels. The visualization uses `d3.tree` and `d3.hierarchy` to compute the layout, then renders horizontal links via `d3.linkHorizontal` and text labels within an SVG. Interactive pan and zoom are enabled through `d3.zoom`. The data.json file organizes countries by geographic subregion, and the font size of each label decreases with tree depth.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed