Skip to main content
100%

Choropleth map

✓ Published0🌍 Public
Rroncando
Last edited Aug 27, 2019
Created on Aug 27, 2019
Forked from Choropleth map

A choropleth map colors countries by income group using a categorical color scale, with a hover effect that turns each country red and a tooltip showing the country name and income group. The visualization loads geographic data from the World Atlas TopoJSON and TSV files, processes it with `topojson.feature` and `d3.tsv`, and projects it using `d3.geoNaturalEarth1` and `d3.geoPath`. A custom legend built with `d3.scaleOrdinal` and `schemeSpectral` renders interactive color swatches, while `d3.zoom` enables panning and zooming on the SVG map.

AI-generated description

An example showing the capabilities of VizHub.

MIT Licensed

Similar vizzes