Skip to main content
100%

World Countries Tree with D3.js

✓ Published1🌍 Public
Ssiddharth171
Last edited Jul 26, 2020
Created on Jul 26, 2020

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 description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes