CO2
✓ Published0🌍 Public
This example visualizes global CO2 emissions by country on an equal-Earth projection map. Each country is filled with a blue-to-red linear color scale corresponding to its emissions value, while countries without data appear grey. The visualization loads geographic boundaries from a GeoJSON file and CO2 data from a CSV, then renders two side-by-side SVG maps using D3 v6’s `d3.geoEqualEarth`, `d3.geoPath`, and `d3.scaleLinear`. The code is built with React and uses a `Map` for country lookup during rendering.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed