ro-savage / parliament

nz parliament seat calculator & visualisation

Home Page:https://julia-mareike.github.io/parliament/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

๐Ÿ hi

install pnpm cause i like it

npm i -g pnpm

pnpm i

pnpm run develop

๐ŸŒ to-do

  • display key of party colours & seats won
  • hover over seat = display party name?
  • display party vote percentage per party - on left hand side?
  • display electorate seats won - somehow, in a not-annoying way
  • hook in saint lague formula - https://github.com/julia-mareike/parliament-builder/blob/master/client/utils.js
  • refactor calculation formula
  • overhang is wrong... it needs to check overhangs after calculating
  • display seats won based on vote percentage (just console log)
  • update parliament svg with seats won
  • only update parliament svg when vote percentage === 100%
  • either display possible coalitions or allow ppl to compile themselves?
  • add in all the other fringe parties
  • link parties to policy.nz?
  • tidy up this darn messy code
  • decrease size of parliament svg slightly to remove mobile scrolling
  • fix janky scroll tabs

๐Ÿž bye

About

nz parliament seat calculator & visualisation

https://julia-mareike.github.io/parliament/

License:BSD Zero Clause License


Languages

Language:JavaScript 98.3%Language:CSS 1.7%