World Countries Tree
✓ Published0🌍 Public
This example visualizes the hierarchical structure of world countries, organized by continent and subregion, using a tree layout. The code applies `d3.tree` and `d3.hierarchy` to a nested JSON dataset, rendering links with `d3.linkHorizontal` and text labels for each node as SVG. Pan and zoom interactions are enabled via `d3.zoom`, while node font sizes decrease with depth. The visualization uses a Playfair Display font and a white text shadow for readability.
AI-generated descriptionMIT Licensed