Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Choropleth map

Public visualization

Viewing a saved revision (read-only)

586fd53631ad4239956b9b329323f991

Choropleth map

0 stars2🌍 Public
Bbencestubnya
Last edited Sep 7, 2020
Created on Sep 7, 2020

A choropleth map colors countries by their economy category, using an ordinal color scale with a spectral scheme and a custom legend that displays each category as a colored circle with a label. The map renders geographic shapes via `d3.geoPath` with a natural Earth projection, while `topojson.feature` converts TopoJSON world-atlas data into GeoJSON features. Users can pan and zoom the map through `d3.zoom`, and hovering over a country highlights it and reveals its name and economy type in a tooltip.

AI-generated description