Post
To compute the final layout we use a force simulation with 3 forces: one of them keeps neighboring districts together while another pushes districts away from each other if they are too close. Coloring the nodes helped to identify problems during the process.
0 reposts44 likes
Here's the entire process outlined in a Observable notebook if you want to tweak the parameters or try to create your own for other countries. observablehq.com/@gka/zon-btw...
observablehq.comCartograms for German Federal ElectionThis notebook documents how we generated the cartograms for the German Federal Election 2025. Each election district is represented by one circle in the map. The positions are contained to the shape o...