Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

project

Public visualization

Viewing a saved revision (read-only)

fdfe560757d048ac99d09019aa6dde39

project

0 stars1🌍 Public
Jjayanthbalina@gmail.com
Last edited Apr 22, 2024
Created on Apr 22, 2024

This interactive choropleth map visualizes global population density (people per km²) across countries for the years 1980, 2000, 2010, and 2022. A dropdown menu switches between years, updating the color-coded SVG paths rendered with d3.geoPath and a Mercator projection. A sidebar displays the ten most densely populated countries, while hovering over a country reveals its name and density value via a styled tooltip. Data is loaded as CSV files and the world geometry from a GeoJSON source.

AI-generated description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.