Skip to main content
100%

World Country Tree

✓ Published0🌍 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.

MIT Licensed

Similar vizzes