Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

World Countries Tree

Public visualization

World Countries Tree

0 stars0🌍 Public
TToooooooT
Last edited Sep 18, 2022
Created on Sep 18, 2022
Forked from Blank Canvas

This visualization displays the hierarchical structure of world countries, organizing them by continent and subregion into a horizontal tree layout. The root node, "World," branches into continents like Asia, which further divide into subregions and individual countries. The SVG rendering uses D3.js v5’s `d3.tree`, `d3.hierarchy`, `d3.linkHorizontal`, and a zoom interaction via `d3.zoom` to navigate the large dataset. Node labels are positioned with dynamic font sizes based on depth, and the data loads asynchronously from a JSON file.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed