Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

chloropleth

Public visualization

Viewing a saved revision (read-only)

ab278ec488ff4e72aaf96a81a6802407

chloropleth

2 stars1🌍 Public
Hhanulik.ondrej@gmail.com
Last edited Aug 16, 2022
Created on Aug 14, 2022
Forked from Mapa svΔ›ta

This choropleth map displays global population by country, with a blue color scale indicating population ranges. Built with d3.js, it uses `d3.geoMercator` for projection and `d3.geoPath` to draw country boundaries from a GeoJSON dataset. Population data from a CSV file is matched to each country via a `Map`, and `d3.scaleThreshold` maps values to a color scheme. Hovering over a country triggers a transition that dims other countries and highlights the selected one with a black stroke.

AI-generated description