Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Q1 module 8

Public visualization

Q1 module 8

0 stars0🌍 Public
RRuthvik Bairaboina
Last edited Nov 9, 2025
Created on Nov 9, 2025
Forked from D3 Starter

This example shows a simple choropleth world map of population for three countries: the United States, India, and China. A Mercator projection via `d3.geoMercator` and `d3.geoPath` renders the embedded GeoJSON polygons. Each country’s fill uses a sequential color scale with `d3.interpolateBlues` based on population values from an in-memory JavaScript object. Hovering reveals a tooltip with country name and population via SVG `<title>` elements.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed