Works portfolio

Elections

Work

This work was realized for my own interests and curiosity .

2024 Context 2D D3.js Data Visualization Elections JavaScript Observable Plot

2024 Legislative Elections in France

In July of 2024, I took a week off after the legislative elections in France. I had a specific goal. I wanted to replicate the striking animation called “Shifting Winds of Belgian Politics” by Karim Douieb.

As I often do, I tackled the technical difficulty one step at a time.

I manually assigned a left-right position to each political party, and looked at the repartition of votes along that scale:

Distribution of votes along the left-right scale in France, 2024
Distribution of votes along the left-right scale in France, 2024

Then I replicated the wind effect where each particle flows to the right or to the left, with a trail.

Wind effect with particles flowing to the right or left
Wind effect with particles flowing to the right or left

Here is the embed of the notebook for the wind effect:

The legislative elections in France are 577 independent races, and generally have two rounds. After the first round, I first fetched the data for the participation (the vote is not mandatory in France, so the participation is an important metric). And I applied the wind effect to the participation:

Evolution of voter participation in France, 2022-2024
Evolution of voter participation in France, 2022-2024

Here is the embed of the notebook for the participation:

I produced another map only for the evolution of the extreme right parties, between the 2022 and 2024 elections:

Evolution of the extreme right vote in France, 2022-2024
Evolution of the extreme right vote in France, 2022-2024

Here is the embed of the notebook for the extreme right:

Finally, I reproduced the left/right wind effect, as in the Belgian elections, but for the 2022 and 2024 legislative elections in France:

Shifting Winds of French Politics: Mapping Right and Left Shifts in the 2024 vs. 2022 Elections.
Shifting Winds of French Politics: Mapping Right and Left Shifts in the 2024 vs. 2022 Elections.

Here is the embed of the notebook for the shifting winds: