Skip to main content
100%

World Countries Tree

✓ Published0🌍 Public
Ssakhabutdinov
Last edited Nov 26, 2019
Created on Nov 20, 2019
Forked from Blank Canvas

This visualization displays a hierarchical tree of world countries organized by continent and subregion, using data from a nested JSON file. Each country is shown as a text label, positioned according to its depth in the hierarchy, with connecting paths. The D3 v5 library powers the layout, using `d3.tree()`, `d3.hierarchy()`, and `d3.linkHorizontal()` to compute positions and draw the SVG paths. Text labels are rendered with varying font sizes based on depth, and the entire tree can be zoomed and panned via `d3.zoom()`.

AI-generated description
MIT Licensed

Similar vizzes