Skip to main content
100%

Circles on a Map

✓ Published2🌍 Public
AArriannePandaraoan
Last edited May 2, 2020
Created on Apr 24, 2020

This example visualizes global population data by coloring each country on a world map based on its 2018 population estimate, with green indicating data availability and red for missing values. It uses D3 v5 with `geoNaturalEarth1` projection and `geoPath` to render the map, while `topojson.feature` converts the world-atlas TopoJSON data. The map supports zooming and panning through `d3.zoom`. A color legend, built with `scaleOrdinal` and `schemeSpectral`, is displayed alongside, and hovering over a country highlights it in red.

AI-generated description
MIT Licensed

Similar vizzes