From 0e997f71e5abf8faf610871319f46f2e0929d23e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Demenech?= Date: Tue, 13 Jun 2023 12:39:02 -0300 Subject: [PATCH] [openspending,stories][m]: add new data-driven story about Berlin --- ...e-does-berlin-spends-its-erdf-benefits.mdx | 105 ++++++++++++++++++ 1 file changed, 105 insertions(+) create mode 100644 examples/openspending/content/stories/where-does-berlin-spends-its-erdf-benefits.mdx diff --git a/examples/openspending/content/stories/where-does-berlin-spends-its-erdf-benefits.mdx b/examples/openspending/content/stories/where-does-berlin-spends-its-erdf-benefits.mdx new file mode 100644 index 00000000..4cac5c55 --- /dev/null +++ b/examples/openspending/content/stories/where-does-berlin-spends-its-erdf-benefits.mdx @@ -0,0 +1,105 @@ +--- +title: Where does Berlin spends its ERDF benefits? +date: 2023-06-12 +authors: ['João Demenech'] +--- + +In this data-driven story, let's analyze how the city of Berlin has benefited from ERDF from 2008 to 2015. + +## What is ERDF? + +If you're not familiar with ERDF, it's the European Regional Development Fund. According to its [official website](https://ec.europa.eu/regional_policy/funding/erdf_en): + +> The European Regional Development Fund (ERDF) aims to strengthen economic, social and territorial cohesion in the European Union by correcting imbalances between its regions. In 2021-2027 it will enable investments in a smarter, greener, more connected and more social Europe that is closer to its citizens. + +## A look into the data + +The dataset that will be used is this one: https://www.openspending.org/@os-data/de3-berlin-2007-2013-erdf (if you're looking for ERDF data for other cities/regions, take a look at the data catalog). + +Here's a sample of this data: + + + +Note that we will only use the rows where the "amount_kind" column is set to "total_amount". + +## How has the total amount changed over the years? + +The line chart below shows the sum of the total amount of EUR that was approved for each year: + + + +As you can see, the total only increased from 2007 to 2010, fluctuating between €7 million and €9 million per year. + +## Who were the top beneficiaries for each year? + +Now, let's try to understand who were the top beneficiaries each year. To do that, let's filter the data to show only the two top beneficiaries for each year: + + + +Since there are many years in this range, let's split this analysis into two ranges: one for 2008-2010 and the other for 2011-2015. + + + + 2010"}, + ], + "width": "container", + "mark": {"type": "bar", "tooltip": true }, + "encoding": { + "y": { + "aggregate": "sum", + "field": "total_amount", + "title": "Total Amount (EUR)", + "stack": null + }, + "x": {"field": "approval_year", "title": "Approval Year"}, + "color": { + "type": "nominal", + "field": "beneficiary_name", + } + } +}} /> + +It's easy to spot some repeating colors. Now, let's see to which sector the top beneficiaries belong to: + + + +Based on the sectors of the top beneficiaries, it's clear that education and professional training have been a major focus of ERDF investment in Berlin during that period of time.