Export Image

aviii5

0 views in last 90 days
Last edited Nov 10, 2025
Created on Nov 10, 2025
Forked from second

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

  1. Prepare CSV Data
    • Create a CSV file with columns: Continent, Country, City, Population
    • Example:
MIT Licensed