Skip to main content
100%

Choropleth Map

✓ Published0🌍 Public
Eevavan8
Last edited Feb 17, 2020
Created on Feb 17, 2020
Forked from Choropleth Map

This choropleth map visualizes global economic classifications by country, coloring each nation according to its economy category. Built with D3 v5, it uses `d3.geoNaturalEarth1` for projection and `d3.geoPath` to render the map from TopoJSON world-atlas data, with country attributes loaded from a TSV file. A color legend, constructed via `colorLegend`, displays the ordinal color scale using `d3.scaleOrdinal` and `d3.schemeSpectral`. The SVG map supports zooming via `d3.zoom`, and hovering changes a country’s fill to red.

AI-generated description
MIT Licensed

Similar vizzes