Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Chloropleth Map

Public visualization

Viewing a saved revision (read-only)

33d8c6b3b453438ea7ab5f13c7d28faf

Chloropleth Map

0 stars0🌍 Public
Ffloresh
Last edited Mar 11, 2019
Created on Oct 3, 2018

This example displays a choropleth map using 160 countries colored by income group, with a legend and tooltips. It loads world geometry from TopoJSON and joins it with TSV metadata, projecting paths with `d3.geoPath` and a natural Earth projection. The ordinal color scale uses `scaleOrdinal` with `schemeSpectral`, and the legend is built as a custom D3 component. Pan and zoom are enabled via `d3.zoom`, and hovering highlights the selected country in red.

AI-generated description