Skip to main content
100%

Q1 module 8

✓ Published0🌍 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
MIT Licensed

Similar vizzes