Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

World Countries Tree

Public visualization

Viewing a saved revision (read-only)

c91a08418c0f4d8297c191cd1368cd1b

World Countries Tree

0 stars0🌍 Public
MMichalJanJanowski
Last edited Apr 6, 2020
Created on Apr 6, 2020

This example shows a hierarchical tree of world countries, organized by continent and region, where each leaf node represents a country name. The visualization uses a vertical dendrogram layout to display the geographic hierarchy, with all text labels rendered directly in the SVG. The code builds the tree using D3's `tree` and `hierarchy` functions, draws the connecting links with `linkVertical`, and applies D3's `zoom` behavior for interactive panning and scaling. Node labels are sized dynamically based on their depth in the hierarchy.

AI-generated description