20 - choropleth map - dataviz 2018
✓ Published2🌍 Public
Zzach b.
Last edited Feb 16, 2022
Created on Jan 5, 2022
Forked from 16 - let's make a map better - dataviz 2018
A choropleth map of the world colors each country according to its economic classification, with a color legend on the left. The map uses a natural Earth projection rendered with `d3.geoPath`, and country data comes from the `world-atlas` TopoJSON and TSV files. A sequential color scale based on `d3.scaleOrdinal` and `schemeSpectral` assigns hues, and hovering turns a country red via SVG CSS. The visualization is built with D3 v5 and the `topojson` library's `feature` function, with zoom capability via a custom `zoom` callback.
AI-generated descriptiondatraviz 2018 #20 - choropleth map
MIT Licensed