🌍 Public
Viewing a saved revision (read-only)
891189c2807e4096a0f4635b6200c07d
world contries tree
This visualization displays the hierarchical structure of world countries, organized by continent (e.g., Asia) and subregion (e.g., Southern Asia), as a horizontally oriented tree. The D3.js library is used to parse the hierarchical JSON data, compute the tree layout with `tree()` and `hierarchy()`, and render the connecting lines with `linkHorizontal()`. Text labels for each country are positioned at their respective nodes, with font size scaled by depth. The rendering is done as an SVG, and the entire view supports pan and zoom through D3's `zoom()` event handler.
AI-generated description