World Countries Tree
✓ Published0🌍 Public
This visualization shows the hierarchical structure of world countries, organized by continent and subregion, as a horizontal tree layout. The code uses D3 v4’s `tree` layout, `hierarchy`, and `linkHorizontal` generator to position nodes and draw curved SVG paths connecting them. Country names are rendered as text labels, with the tree expanding from the root node “World” through regions like Asia and Southern Asia. The example loads hierarchical data from a JSON file, which drives the layout without additional styling or interaction beyond the basic tree structure.
AI-generated descriptionMIT Licensed