World Countries Tree
✓ Published0🌍 Public
This example visualizes the hierarchical structure of world countries, organized by continent and region, in a tidy tree layout. The code uses D3.js v6 with the `d3.tree` and `d3.hierarchy` to calculate node positions, and `d3.json` loads the nested country data from data.json. Horizontal links connect parent and child nodes, while text labels display each country or region name, with font size scaled by tree depth. Panning and zooming are enabled through the `d3.zoom` behavior, rendered as an SVG.
AI-generated descriptionMIT Licensed