Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Choropleth map

Public visualization

Viewing a saved revision (read-only)

1a5ab98a739041e98d6c77d29f06a42e

Choropleth map

0 stars2🌍 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