🌍 Public
Viewing a saved revision (read-only)
0fbea9dc21b14b1cbe6bbdca519ea124
World Countries Tree
This visualization shows the hierarchical structure of world countries, organized by continent and then by subregion. The tree layout arranges continent names at the root, followed by regional groupings, with individual countries as leaf nodes. The code uses d3.tree(), d3.hierarchy(), and d3.linkHorizontal() to compute and draw the layout, while d3.zoom() enables panning and zooming. The hierarchical data comes from an external JSON file, and text styling incorporates the Playfair Display font with varying font sizes based on depth.
AI-generated description