Skip to main content
100%

Choropleth Map

✓ Published2🌍 Public
KKazushige Okuma
Last edited Sep 29, 2019
Created on Sep 25, 2019

This choropleth map visualizes the nominal GDP of countries using a color scale based on income group, with darker colors indicating higher values. The map uses a natural Earth projection via `d3.geoNaturalEarth1` and `d3.geoPath` to render country boundaries from TopoJSON data loaded from the World Atlas. A color legend, built with a custom `colorLegend` component, displays the ordinal scale domains using `d3.scaleOrdinal` and the `schemeSpectral` color range. The visualization also supports zooming through `d3.zoom`, and country tooltips appear on hover via SVG `<title>` elements.

AI-generated description
MIT Licensed

Similar vizzes