Source code and more info here: <a href="https://github.com/votermap/votermap.github.io/tree/main">https://github.com/votermap/votermap.github.io/tree/main</a><p>The core idea is to take precinct-level election results and visualize them with one dot per vote, but distribute those dots based on block-level population density. For both maps, this uses 2020 Census block non-incarcerated voting-age population totals to place the dots (most of the work to generate these block-level vote and population numbers was done by the redistrictingdatahub.org, with the exception of DC, CA, and PA).<p>The map uses MapLibre for the front end and a vector-tile service called Tippecanoe to generate the tiles.<p>I was inspired by maps like this one: <a href="https://x.com/kennethfield/status/1363974716826869760" rel="nofollow">https://x.com/kennethfield/status/1363974716826869760</a> (the author has an excellent book of 101 visualizations of US Election data), but wanted to make a version that uses precinct-level data and offers the side-by-side comparison of 2016 vs 2020.<p>I hope it's okay to post this here despite the political nature - it was an interesting project from a tech/cartography standpoint and it's cool to see the political geography of the US.