STV election visualisations
View visualisations for NZ elections →- Date
- 2016, 2019, 2025
- Category
- Web development,
- Data visualisation
- Tech
- JavaScript,
- D3,
- SVG
Data from ranked-choice voting systems, such as Single-Transferable Vote (STV) and Instant Runoff (IRV), offers a lot of insight into voter preferences. In an effort to make these insights more accessible I've created a number of original web-based visualisations, including for New Zealand council elections and Australian federal elections.
This work involved using custom Node.js scripts to extract and transform data (from PDFs, XML, and scraped from websites), calculating outcomes based on the voting system algorithms, and then using D3.js to generate a fully custom visualisation of this data.
Additionally, an earlier version of this work formed the basis of a 2016 collaboration between myself and visual communication designer Thomas Le Bas. With the aim of increasing peoples' understanding of the STV system as more councils looked to adopt it, we created and educational website that provided interactive examples showing how votes are counted in a few common scenarios. This is shown below.
