World Population Tree Visualization
An interactive D3.js tree visualization showing the
hierarchical relationship between continents, countries, and
cities by population.
Features
- Hierarchical Tree Layout: Displays data as Continent →
Country → City
- Color Coding: Different colors for each level (Root,
Continent, Country, City)
- Interactive Tooltips: Hover over nodes to see detailed
information
- Responsive Design: Adapts to different screen sizes
Setup
Quick Start with Sample Data
The visualization comes with sample data pre-loaded. Open
index.html in a web browser to see the tree.
Using Your Own Data
- Prepare CSV Data
- Create a CSV file with columns:
Continent, Country,
City, Population
- Example: