choropleth map
✓ Published0🌍 Public
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 descriptionMIT Licensed