Global Tons of CO2 Emissions Per Year V3
This choropleth map displays annual CO2 emissions per country from 1850 to 2023, colored on a green-to-red gradient with a legend, year slider, and hover highlighting for specific country values. The visualization uses React state to manage selected years and moused-over countries, while D3’s `geoNaturalEarth1` projection, `geoPath`, and `geoGraticule` render the world map. A D3 `sliderBottom` control adjusts the year, triggering color updates derived from the country’s emission value relative to the global min/max range.
AI-generated descriptionThis visualization shows the CO2 emissions in million of tons per year for a each country. Use the slider bar to change the year being displayed and mouse over each country to get more specific information.
Github: https://github.com/bmh5227/dataviz_final_project/blob/master/README.md
Dataset Source: https://github.com/owid/co2-data
Future Enhancements:
- Display this ^ additional information through various
means such as
- tool tips
- Clicking on a country to select it
- Refactor map.js to clean up the code
- Let the scroll wheel/arrow keys change the year to more specifically select the year being shown
- Show the global emission or emission per continent/region