Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

World Countries Tree

Public visualization

World Countries Tree

0 stars1🌍 Public
SSumit Kumar
Last edited Nov 8, 2019
Created on Nov 8, 2019

A hierarchical tree visualization displays the countries of the world, organized by continent and subregion, with each node labeled by name. The layout uses a tidy tree algorithm, rendering curved links between parent and child nodes via SVG paths. Implemented with D3 v5, the code employs `d3.hierarchy`, `d3.tree`, and `d3.linkHorizontal` to position nodes, while `d3.zoom` enables pan and zoom interactions. Text size scales inversely with depth, and the data comes from a static JSON file structured by geographic regions.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed