World Countries Tree
✓ Published0🌍 Public
This visualization displays the hierarchical structure of world countries, organized by continent and subregion. The code uses D3’s `tree` layout and `linkHorizontal` generator to draw the branching paths, with text labels positioned at each node. Data is loaded from a local JSON file via `d3.json`, and zooming is enabled through D3’s `zoom` behavior. The SVG is styled with a Playfair Display font, and node text size decreases with depth.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed