Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of World Countries Tree

Public visualization

Viewing a saved revision (read-only)

ff034ae62d4d46689af7598cb675e383

Fork of World Countries Tree

0 stars0🌍 Public
취취코
Last edited Feb 20, 2021
Created on Feb 20, 2021

This example visualizes a hierarchical tree of world countries organized by continent and subregion, with each country name displayed as a text label. The tree expands horizontally with larger font sizes for higher-level categories, and the entire visualization supports zooming and panning through a zoom behavior. The code builds the layout using `d3.tree` and `d3.hierarchy`, renders links with `d3.linkHorizontal`, and loads data from a JSON file via `d3.json`. Countries are grouped into regions like Southern Asia and Western Asia, with styling applied through SVG paths and text elements.

AI-generated description