Skip to main content
100%

Fork of GeoVisualization - Choropleth map of the world

✓ Published0🌍 Public
EEjenavi16
Last edited Mar 13, 2023
Created on Mar 13, 2023

This example shows a choropleth map of the world coloring each country by population, with a blue threshold color scale. It uses `d3.geoPath` and `d3.geoMercator` to project and draw country boundaries from a GeoJSON file, while population data is loaded from a CSV and mapped by country code. Mouseover transitions dim all countries except the hovered one, which gains a black stroke. The visualization is built with D3 v6 and rendered as SVG, using `d3.scaleThreshold` and `d3.schemeBlues[7]` for the color encoding.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes