Ranked choice voting

Skills used: JavaScript, D3, Python

Code available on Github

In June 2021, the citizens of New York used rank-choice voting for the first time in the mayoral primaries. Instead of voting for just candidate, voters could rank their top 5 choices in order of preference.

To find the winner, election officials hold several rounds of vote-counting. Each round, the candidate or candidates with the fewest votes are eliminated. Votes for eliminated candidates are then redistributed to the remaining candidates based on who voters picked as their next choice.

How I built this project

For this project, I used Python to scrape election results from the Board of Elections website and then created a D3 data animation to show how the process of ranked-choice voting played out in the Democratic primary election.