Skip to main content
100%

Fork of Fork of Chloropleth

✓ Published0🌍 Public
Gg_ivaska@coloradocollege.edu
Last edited May 4, 2024
Created on May 2, 2024

This example displays a choropleth map of the world, coloring countries based on their "Birth Rate" from a 2023 world-data CSV. A blue-to-red linear color scale encodes the data range, with grey indicating missing countries. The visualization renders two separate SVG canvases side-by-side, each showing the same map. The code loads GeoJSON map data, country statistics, and continent data using `Promise.all` and `d3.json`, `d3.csv`, then draws the map with `d3.geoEqualEarth` and `d3.geoPath`.

AI-generated description

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

See also React Starter.

Following in Class

MIT Licensed

Similar vizzes