A full-stack data visualization dashboard for CO₂ emissions analysis of Egypt, built with Flask, Plotly.js, and Pandas. Features real-time AI context, animated timelines, and data from the World Bank & UNDP. 🌱
# Egypt Emissions Trend & Climate Inequality Dashboard
An interactive dashboard exploring Egypt's emissions trajectory through a climate justice lens
🚀 Live Demo •
Data Source: Our World in Data •
AI: OpenRouter •
Visualizations: Plotly.js
---
## The Climate Justice Story
Egypt presents a compelling case of **climate injustice** — where vulnerability vastly exceeds responsibility.
### Key Statistics (2023)
| Metric | Egypt | Global Average | Implication |
|--------|-------|----------------|-------------|
| CO₂ per capita | **2.19 t** | 4.71 t | 54% below average |
| Global CO₂ share | **0.64%** | — | 1/3 of population share |
| Population | **114 million** | — | Growing at ~2M/year |
| GDP per capita | **$3,457** (nominal) | — | Developing nation |
### Why This Matters
- Egypt contributes **less than 0.7%** of global CO₂ emissions
- Hosts **COP27** (2022)** and committed to **42% renewable electricity by 2035**
- One of the world's most **climate-vulnerable coastal zones** faces sea-level rise
- Despite Zohr gas discovery (2015) making Egypt a net exporter, fossil fuels still account for **90%+ of electricity**
---
## Dashboard Features
### 1. Emissions Trend Analysis
Interactive line charts showing Egypt's CO₂ emissions from 2001-2023 with:
- **Total emissions** (Mt CO₂) with historical phases
- **Per capita emissions** (t CO₂/person) normalized by population
- **CAGR calculations** for each historical period
**Historical Phases:**
| Period | Phase | CAGR | Key Events |
|--------|-------|------|------------|
| 2001-2010 | Pre-Arab Spring | +5.4%/yr | Rapid industrialization |
| 2011-2015 | Post-Crisis | +0.6%/yr | Arab Spring, political transition |
| 2016-2019 | Reform & Zohr | **-1.5%/yr** | Zohr gas online, IMF reform |
| 2020-2023 | COVID & Recovery | +0.5%/yr | Pandemic, global recovery |
### 2. Fuel Mix Breakdown (CO₂/GHG Toggle) with Historical Timeline
Explore emissions by source with a toggle between:
- **CO₂ Mode**: Coal, Oil …