Skip to main content
100%

Choropleth Map

✓ Published1🌍 Public
PPreciousone
Last edited Nov 15, 2020
Created on Nov 15, 2020
Forked from Choropleth Map

This choropleth map colors countries by their economy classification using a categorical color scale derived from d3.scaleOrdinal and d3.schemeSpectral. It loads GeoJSON from TopoJSON world-atlas data and merges it with TSV metadata, then renders paths via d3.geoPath with a Natural Earth projection. Hovering highlights countries in red, while a custom color legend built with reusable D3 code displays the ordinal categories. Zoom and pan are enabled through d3.zoom, and the SVG output includes tooltips showing country names and economy values.

AI-generated description
MIT Licensed

Similar vizzes