Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Chloropeth Map

Public visualization

Viewing a saved revision (read-only)

f7b07f10ffd44c8e935ff3a2e6f69242

Chloropeth Map

0 stars3🌍 Public
MMuhammad Jarir Kanji
Last edited Mar 10, 2021
Created on Dec 16, 2020

A choropleth map colors countries by economy using a D3 v5 ordinal color scale with a spectral scheme. The visualization uses the `d3.geoPath` and `d3.geoNaturalEarth1` projection to render geographic boundaries from TopoJSON world-atlas data, with a legend built via a custom `colorLegend` function. Hovering highlights a country in pink, and a zoom interaction is implemented with `d3.zoom`. The map is rendered as SVG with a dark blue ocean background.

AI-generated description