Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Chorpleth Map

Public visualization

Viewing a saved revision (read-only)

521ab497ce8d43cebdbb302e942f66d3

Chorpleth Map

0 stars0🌍 Public
FFhouston17
Last edited Jun 29, 2020
Created on Jun 29, 2020
Forked from Interactive Map

This choropleth map colors countries by income group using an ordinal color scale from the `d3.scaleOrdinal` and `d3.schemeSpectral` APIs. It projects the world with `d3.geoNaturalEarth1` and `d3.geoPath`, drawing each country as an SVG path. The map is interactive, supporting zoom and pan via the `d3.zoom` event handler, and includes a custom legend generated with `colourLegend`. Data combines TopoJSON country boundaries with TSV attributes from the World Atlas dataset.

AI-generated description