Skip to main content
100%

choropleth map

✓ Published0🌍 Public
MMert Gürkan
Last edited May 13, 2021
Created on Jul 19, 2020
Forked from map interactions

This choropleth map shows global economic classifications by country, with a color legend that supports interactive highlighting. Using D3 v5 and topojson, it renders GeoJSON features through `d3.geoNaturalEarth1` and `d3.geoPath` onto an SVG, while a `scaleOrdinal` maps the discrete economy values to a `schemeSpectral` palette. Clicking a legend entry filters the map via opacity changes. The map fetches world-atlas TopoJSON and TSV data, with hover and zoom enabled through D3’s zoom behavior.

AI-generated description
MIT Licensed

Similar vizzes