Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

World Country Tree

Public visualization

World Country Tree

0 stars0🌍 Public
YYanan Xin
Last edited Feb 24, 2020
Created on Feb 24, 2020

The World Country Tree visualizes a hierarchical classification of countries by continent and region using a horizontal tree layout. It renders nested links and labels based on the JSON data structure. The code uses D3.js APIs including `d3.tree`, `d3.hierarchy`, `linkHorizontal`, and `d3.zoom` to create an interactive SVG visualization that supports panning and zooming. Text sizes decrease with tree depth for readability.

AI-generated description

An example to make tree graph using D3.js.

Comments

Sign in to join the discussion.

MIT Licensed