Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Map Playground

Public visualization

Viewing a saved revision (read-only)

6f9feae7f8614250978b132fd33905f1

Map Playground

0 stars0🌍 Public
KKyle?
Last edited Mar 24, 2023
Created on Mar 24, 2023
Forked from Choropleth Map

This example visualizes World Bank GDP per capita data for 2020 as a choropleth map, using a natural Earth projection and a quantile color scale with the YlGnBu scheme. Missing data appears gray. The map renders country boundaries from TopoJSON fetched via `topojson.feature`, while CSV data is parsed with `csvParse` and joined to country codes using a `Map`. The visualization uses `d3.geoPath`, `geoNaturalEarth1`, and `d3.scaleQuantile` to encode values as fill colors.

AI-generated description
MIT Licensed