Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Chloropeth Map

Public visualization

Viewing a saved revision (read-only)

2e8f6b0a7a2441fd9f2dcf4fa2f7ed65

Chloropeth Map

0 stars1🌍 Public
Xxsg13
Last edited Jan 3, 2021
Created on Jan 3, 2021

This choropleth map colors countries by income group using an ordinal color scale derived from d3.scaleOrdinal and the d3.schemeSpectral palette. It renders geographic boundaries with d3.geoPath and a Natural Earth projection, with hover highlighting via CSS. The visualization includes an interactive color legend built with custom SVG code, and supports zooming through d3.zoom. Data combines TopoJSON world geometry with TSV metadata from the world-atlas package, and country names and income values appear in tooltips via SVG title elements.

AI-generated description