Skip to main content
100%

Choropleth Map

✓ Published1🌍 Public
Ccheeson
Last edited Aug 10, 2020
Created on Aug 10, 2020
Forked from Hello VizHub

This choropleth map visualizes countries by economic type, with a color legend and zoomable navigation. Built with D3 v5, it uses `geoNaturalEarth1` projection, `geoPath`, and TopoJSON data from the world-atlas package to render SVG country paths. A categorical `scaleOrdinal` color scale maps economic classifications to the Spectral palette. Hovering a country reveals its name and economy in a tooltip, while `d3.zoom` enables pan and zoom. The legend is generated by a custom `colorLegend` component.

AI-generated description
MIT Licensed

Similar vizzes