European elections 2024 by Der SPIEGEL

On the occasion of the 2024 European elections, the German news magazine DER SPIEGEL has completely overhauled its election dashboard. We wanted to create a central place where all relevant election data can be found clearly. In several “cards”, we shed light on the various aspects of an election: vote shares, seat distribution, regional results, results by age and gender, voter flows and historical data. Moderating subheadings summarize the key messages of each card and provide orientation when reading the graphics. Because the majority of our website’s users use their cell phones, we focused on mobile use when designing the visual elements and the user interface. For example, additional information on constituencies and MPs slides up from the bottom of the display as an overlay and can be expanded or collapsed using swipe gestures familiar from native mobile apps. The front end has already been implemented with Svelte 5. In the backend, projections, constituency results, the results of exit-polls or the moderating subheadings are entered via our very own API, which was implemented using the Python libraries FastAPI and SQLModel. On election night, the data was delivered to our user’s browsers via web sockets, enabling real-time provision.

#