Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

World Countries Tree

Public visualization

World Countries Tree

0 stars1🌍 Public
NNikalculus
Last edited Feb 10, 2020
Created on Feb 10, 2020

This visualization displays the hierarchical structure of world countries organized by continent and region, rendered as a horizontal tree layout. The D3.js code uses `d3.tree`, `d3.hierarchy`, and `d3.linkHorizontal` to compute node positions and draw curved links from the hierarchical JSON data. Each country name appears as SVG text with font size decreasing by depth, while pan and zoom are enabled through `d3.zoom` on the entire SVG group.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed