🌍 Public
Viewing a saved revision (read-only)
946c9d1b50444216ae84e7b6a5d5a03e
Choropleth Map with Interactive Filtering
Aankita1mit
Last edited Mar 17, 2020
Created on Mar 17, 2020
Forked from Choropleth Map with Interactive Filtering
This choropleth map uses colors to display the economy category of each country, with an interactive color legend that filters the map. Clicking a legend item dims all countries not in that category, while hovering over a country turns it red. Built with D3 v5, the visualization uses `geoPath` and `geoNaturalEarth1` for map projection and `scaleOrdinal` with `schemeSpectral` for coloring. The code loads world country boundaries from TopoJSON and economy data from a TSV file using `d3.tsv` and the `topojson` library.
AI-generated descriptionA choropleth map where you can hover over items in the color legend items to interactively filter!