World Countries Tree
✓ Published0🌍 Public
This visualization displays the hierarchical structure of world countries, organized by continent and subregion, using a horizontal tree layout rendered with SVG. The code employs D3 v5’s `tree`, `hierarchy`, and `linkHorizontal` functions to compute node positions and draw curved links, while text labels are sized dynamically based on node depth. Pan and zoom interactions are enabled through D3’s `zoom` behavior, and the data comes from a local JSON file containing nested country names.
AI-generated descriptionMIT Licensed