Fork of World Countries Tree
✓ Published0🌍 Public
This visualization shows a hierarchical tree of world countries, organized by continent and subregion, with each country displayed as a text label. The tree layout from D3 v5 arranges nodes vertically, and a zoom behavior allows users to pan and scale the SVG view. The code uses `d3.hierarchy`, `tree().size()`, `linkHorizontal()`, and `d3.zoom()`, while the data comes from a local `data.json` file with a nested structure. Label font size decreases with depth, and curved links are drawn between parent and child nodes.
AI-generated descriptionMIT Licensed