Fork of Choropleth Map
✓ Published0🌍 Public
This choropleth map visualizes GDP per capita (PPP, current international $) by country, using data from the World Bank’s 2020 dataset. It renders countries as geographic paths via `d3.geoPath`, fills them with a sequential color scale (`d3.scaleQuantile` and `schemeYlGnBu`), and marks missing values in gray. The code fetches TopoJSON world atlas boundaries and a CSV dataset, then combines them using `topojson-client` and `d3.csvParse`. Natural Earth projection and graticule lines provide geographic context.
AI-generated descriptionA choropleth map of World Bank Dataset: GDP per capita, PPP (current international $).
See also:
- Wikipedia: List of countries by GDP (PPP)
- World Bank: GDP per capita, PPP (current international $)
- GitHub Gist: World Bank Dataset: GDP per capita, PPP (current international $)
- MDN: String.prototype.substring()
- MDN: Promise.all
- MDN: Map
- d3.scaleQuantile
- Wikipedia: Quantile
- d3-scale-chromatic
- ColorBrewer
MIT Licensed