World Countries Tree with D3.js
✓ Published1🌍 Public
This example shows a hierarchical tree of world countries, organized by continent and subregion, with each country as a leaf node. The tree is rendered as an SVG using D3.js v5, with horizontal links connecting parent nodes to their children, and text labels sized according to depth. The visualization supports pan and zoom interactions via D3's `zoom` behavior. Data is loaded from a JSON file using `d3.json` and processed with `d3.hierarchy` and `d3.tree` for layout.
AI-generated descriptionA bare minimum HTML page.
See also React Starter.
MIT Licensed