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
LLeda Sadotti
Last edited Jun 15, 2022
Created on Jun 15, 2022

This visualization displays a hierarchical tree of world countries, organized by region and subregion, using a horizontal dendrogram layout. The tree structure is rendered with SVG, showing parent-child relationships through curved link paths and text labels that decrease in font size with depth. The code uses D3 v5’s `tree()`, `hierarchy()`, and `linkHorizontal()` to compute and draw the layout, with `d3.zoom()` enabling pan and zoom interactions. Data comes from a local `data.json` file containing nested country groupings.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed