Tree Visualization of World Countries
✓ Published0🌍 Public
This visualization displays the hierarchical relationship between world countries, continents, and subregions as a horizontal tree diagram. The code uses D3 v5’s `tree` and `hierarchy` layouts to compute node positions, with `linkHorizontal` generating curved connecting paths. Text labels show country names at varying font sizes based on tree depth. The SVG rendering supports zooming and panning through D3’s `zoom` behavior, and the data comes from a nested JSON file. The styling uses the IM Fell English SC font.
AI-generated descriptionMIT Licensed