Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Choropleth Map

Public visualization

Viewing a saved revision (read-only)

f64f246850db42bfb27213401f074b33

Fork of Choropleth Map

0 stars0🌍 Public
MMatovu Ronald
Last edited Jun 26, 2023
Created on Jun 26, 2023
Forked from Choropleth Map

This fork of a choropleth map visualizes World Bank GDP per capita data for 2020 across countries worldwide. The map colors each country using a quantile color scale with a YlGnBu sequential scheme, with gray filling regions lacking data. The visualization loads GeoJSON topology from the world atlas and CSV data, processing both through `Promise.all` before rendering with `d3.geoNaturalEarth1`, `d3.geoPath`, and `d3.geoGraticule`. The code implements a reusable map component that updates through a state management pattern using `d3.select` and `d3.scaleQuantile`.

AI-generated description
MIT Licensed