Skip to main content
100%

Choropleth Map NU

✓ Published0🌍 Public
CCrossZeigler
Last edited May 19, 2023
Created on May 18, 2023
Forked from HTML Starter

A choropleth map displays the World Happiness Report 2019 scores of countries. The map uses a Robinson projection and colors each nation according to its happiness score using a sequential OrRd color scale. The visualization is built with D3 v4 and React, and renders as an SVG. The code uses `d3.geoPath`, `d3.geoRobinson`, and `d3.scaleThreshold` for the choropleth. It fetches GeoJSON and CSV data from GitHub. Interactive features include a tooltip and click-to-zoom animation using `d3.transition`.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes