🌍 Public
Viewing a saved revision (read-only)
5f6a3c0a2fc44bb2849a96c8aaa6a125
World Countries Tree
This example displays a hierarchical tree of world countries organized by continent and subregion, rendered as an SVG visualization. The data is loaded from a JSON file using `d3.json()`, then processed through `d3.hierarchy()` and `d3.tree()` to compute the layout. Nodes are labeled with country names, with font size scaling by depth, and links are drawn using `d3.linkHorizontal()`. Pan and zoom interactions are implemented with `d3.zoom()`, while hover effects are omitted.
AI-generated description