Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Chloropeth Map

Public visualization

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

Comments

Sign in to join the discussion.

MIT Licensed