Election visualisation

I have hacked up a booth-by-booth visualisation of votes in Wellington Central. The visible (non-occluded) area of each circle is proportionate to the party vote received, and the circles proceed inwards from most votes. It only shows the top three five parties at each booth at the moment (from skimming over the data, further down than that they become negligibly small). It’s not really as interesting as I’d hoped, but I may try it on other electorates that might show something better later on.

Update: I’ve extended it to the top five, rather than three, parties, and it gets a little more interesting then. The fifth-place party varies quite a bit.

Update 2: More electorates:

5 Responses to “Election visualisation”

  1. Walter says:

    This is nice. However, you seem to be missing some polling places.
    For example, there are two in Northland, neither of which show up on your graphic.
    Also, the graphic for “Newtown, St James’ Presbyterian Church Lounge, 235 Adelaide Road” is a bit misleading perhaps, as four parties are tied in third with one vote, yet it only shows one of them.

    I think it’s hard to judge relative areas of circular shells, perhaps a bar graph would be easier?

  2. Michael says:

    I’ve updated the generation to include (almost) all the places – I had tried to add the Northland ones manually, but they clearly didn’t take.

    On circles, yes, they are suboptimal. I really wanted a pie chart, but I’m limited by what the API provides. Polygons require lat-long coordinates as axes, which aren’t really much good for graphics, and drawing my own circles for a pie has the same issue. I do think that the circles are acceptably understandable, at least, though I am wondering if they should be in the opposite order.

    The code is there to be edited if you want, though…

  3. Michael says:

    And since that last comment I have updated it to include the top five parties at each place as well.

    I tried reversing the circles; it definitely isn’t clearer, for reasons that should have been obvious. I’ve also tried including an “all other parties” circle, but that muddles things more than anything.

  4. Walter says:

    Why are there no polling places on Chatham Island in Rongotai?

    Also, do you manually add in each polling place?

  5. Michael says:

    I have a Python script that parses the data out of (TSV files created from) the files from http://electionresults.org.nz/electionresults_2011/pp_stats_index.html and geocodes the addresses, then generates the appropriate data code to go in the page. It takes a few minutes to add each electorate.

    There wasn’t anything there because there’s no street data for the Chathams, so geocoding failed. I’ve added it manually. It’s tiny, but there.

Leave a Reply

You must be logged in to post a comment.