Skip to main content
100%

Choropleth map with Interactive clicking

✓ Published0🌍 Public
Jjeelong
Last edited Jul 11, 2020
Created on Jun 27, 2020
Forked from Choropleth map

A choropleth map of world countries colored by income group, with an interactive legend that filters and highlights selected categories. The map uses a Natural Earth projection via `d3.geoPath` and `d3.geoNaturalEarth1`, rendered as SVG paths from TopoJSON world-atlas data. Clicking a legend tick toggles a color value, reducing opacity of non-matching countries and dimming the globe sphere. Zooming via `d3.zoom` and `d3.event` allows pan and scale; the legend is built with ordinal `d3.scaleOrdinal` and the `schemeSpectral` color scheme.

AI-generated description

React Starter code.

MIT Licensed

Similar vizzes