Skip to main content
100%

Choropleth map

✓ Published2🌍 Public
JJoel Schwartz
Last edited May 5, 2020
Created on May 5, 2020

A world map rendered as a choropleth shades each country according to its economic classification, using a spectral color scale. Hovering highlights a country and shows its name and classification. The map is drawn with d3.geoPath and a Natural Earth projection, with TopoJSON data from the world-atlas package. A custom colorLegend function displays the ordinal scale, and d3.zoom enables interactive panning and zooming of the SVG.

AI-generated description
MIT Licensed

Similar vizzes