World Countries Tree
✓ Published0🌍 Public
This visualization shows the hierarchical structure of world countries organized by continent and subregion using a horizontal tree layout. The code renders an SVG with d3.tree and d3.hierarchy to position nodes, while d3.linkHorizontal generates the curved connecting paths. Interactive zooming is enabled through d3.zoom, and text labels display country names with font sizes decreasing by depth level. The data comes from a nested JSON file containing geographic groupings, and nodes are labeled with d3 selections appending text elements styled with Playfair Display font.
AI-generated descriptionMIT Licensed