🌍 Public
Viewing a saved revision (read-only)
f5659b41ad694cbaa3485debe0fe8f48
Fork of Fork of World Countries Tree
This visualization presents a hierarchical tree of world countries, organized by continent and subregion, using a branching layout that expands from left to right. The data is loaded from a JSON file, and the tree structure is rendered as SVG paths and text labels. The code uses D3 v5’s `tree()` layout, `hierarchy()`, and `linkHorizontal()` to compute the layout and draw the connecting links. Users can pan and zoom the entire diagram via the `zoom()` behavior, with text sizing decreasing at deeper levels to fit the hierarchy.
AI-generated description