The question
Emissions data is public, but it sits in dozens of separate files, one per sector, with hundreds of thousands of rows. Which countries and activities matter most, and how is that changing? A spreadsheet cannot answer that interactively.
A web dashboard, written entirely in Python, that lets anyone explore who emits how much, and from which activity: pick countries, years, sectors or subsectors, or simply click the map, the treemap or a bar, and every chart, figure and table updates together.
Team project Python Dash Plotly Data visualisation Carbon accountingContext: team project for the coding module of the MBA in Technology Management at TUHH / NIT Hamburg · Presented: 5 July 2025, as Carbon Snapshot: Emissions Dashboard · Data: the open Climate TRACE emissions inventory, country level · Delivered: a working Dash application and a 23-slide technical walkthrough of its code.
The question
Emissions data is public, but it sits in dozens of separate files, one per sector, with hundreds of thousands of rows. Which countries and activities matter most, and how is that changing? A spreadsheet cannot answer that interactively.
What we built
A single-page web app: four filters, three summary figures, a world map, a sector treemap, a top-emitters bar chart, a trend line and a detailed table, all driven by the same filtered data.
How it works
pandas loads and cleans the data once and keeps it in memory. Plotly Express draws the charts, Dash Bootstrap Components lays out the page, and Dash callbacks connect every click to the charts.
What it shows
Global emissions rose from 55.8 to 62.2 billion tonnes of CO₂e between 2015 and 2024, about 11.5%, with one dip in 2020. Power is the largest sector, and electricity generation alone is the biggest single source.




| Element | What it shows | How you interact |
|---|---|---|
| Four filters | Country, year, sector, subsector | Multi-select dropdowns; empty means “all” |
| Summary cards | Total emissions, number of countries, average per country | Recalculated on every change |
| World map | Total emissions per country, as a choropleth | Click a country to add or remove it from the filter |
| Treemap | Emissions by sector, then subsector, sized by volume | Click a sector to filter by it |
| Top emitters | The ten largest emitters for the current selection | Click a bar to toggle that country; selected countries turn red |
| Trend line | Emissions over time: global, one country, or one line per selected country | Follows the country filter |
| Data table | Every matching record, largest first, ten rows a page | Scrolls and pages; updates with the filters |
| Reset | Clears every selection at once | One button |
Prepare the data. Climate TRACE publishes one file per sector at country level. The team combined them into one table of country, year, sector, subsector and emissions in billion tonnes of CO₂e, then loaded it with pandas, dropped the incomplete year 2025 and the duplicate raw emissions column, and built the option lists for the four filters.
Lay out the page. Dash Bootstrap Components gave a responsive grid written in Python: a header row with the title and the reset button, a row of four filter cards, three summary cards, two rows of two charts, and a full-width table, all in the clean FLATLY theme with one central colour scheme.
Draw the charts. Plotly Express produced the choropleth map, the treemap, the bar chart and the line chart in a few lines each, with hover details, titles and colour scales set once.
Make the charts clickable. Small callbacks read where the user clicked on the map, a bar or the treemap, and add or remove that country or sector in the matching dropdown, so the charts themselves become filters.
Keep everything in sync. One main callback listens to all four filters and the reset button, filters the data once, recalculates the three figures, redraws all four charts and refreshes the table, returning everything together.
Explain it. The team presented the app and walked through its code, slide by slide, from the imports to the callbacks.
The team compared three ways to build a data app in Python before choosing one.
| Option | What it offers | Why not (or why) |
|---|---|---|
| Flask alone | Full control of a web server | Every page needs hand-written HTML, CSS and JavaScript |
| Streamlit | The fastest start | Less control over the layout, and simpler interactivity between charts |
| Dash | Python for both the interface and the logic, with Plotly charts built in | Chosen: precise layout control and callbacks that update many charts at once |
Still rising
Global emissions grew from 55.8 billion tonnes of CO₂e in 2015 to 62.2 billion in 2024. The only fall came in 2020, about 3% below 2019, and it was more than recovered by 2021.
A few countries dominate
Over the decade, China, the United States, India and Russia together account for more than half of all emissions in the dataset.
Power first
Power is the largest sector, about a quarter of the total, and electricity generation is the single biggest subsector, ahead of road transport.
Diverging paths
India’s emissions rose by about 26% between 2015 and 2024, while Germany’s fell by about 22%: the same dashboard shows growth and decarbonisation side by side.
| Component | Technology |
|---|---|
| Language | Python |
| Web framework | Dash (by Plotly) |
| Layout and styling | Dash Bootstrap Components, FLATLY theme |
| Charts | Plotly Express: choropleth, treemap, bar, line |
| Data handling | pandas, one cleaned table held in memory |
| Table | Dash DataTable with paging and horizontal scroll |
| Data source | Climate TRACE, country-level emissions by sector |
| Skill | Where it shows |
|---|---|
| Python for analytics | Loading, cleaning and aggregating 155,476 records with pandas |
| Data visualisation | Choosing the right chart for each question: where (map), what (treemap), who (bars), when (trend) |
| Interactive app design | Linked filters, clickable charts and a single source of truth for every view |
| Event-driven programming | Dash callbacks with multiple outputs, guarded clicks and selection toggling |
| Carbon accounting literacy | Working in CO₂-equivalent across sectors, subsectors and countries |
| Technical communication | A slide-by-slide code walkthrough for a non-specialist audience |
| Teamwork | Built and presented as a team, merging work from several notebooks into one app |
Good dashboards start from questions, not charts. Each visual here answers one: where emissions come from, what activities cause them, who the largest emitters are, and how that is changing. The most useful design decision was technical but simple: every filter and every click goes through one update function, so the figures, charts and table always describe exactly the same data. And the project was a reminder that coding, for a manager, is less about syntax than about turning a large, scattered dataset into something people can explore on their own.
Python Dash Plotly Express pandas Dash Bootstrap Components Climate TRACE Data visualisation Carbon accounting Team project