Toronto budget mini-“hackathon” report

Check out the cool stuff we made at the Toronto budget mini-hackathon this weekend!

We parsed the 2012 city budget from a messy bunch of Excel files, and uploaded it to OpenSpending — which produces this interactive treemap:

Screen shot 2013-07-22 at 9.22.23 AM

 

We also got the data into Tableau, and produced this less colourful but more readable treemaptableauscreenshot

We slogged through an XML snapshot from the city’s Lobbyist Registry data, filtered out everything except the “particulars” of lobbyist activities at the City of Toronto (basically, descriptions about what they’re meeting about). It’s an ideal dataset for a tag cloud:

wordle

We also took that operating budget data, and built a zoomable pack layout visualization with it, using d3.js. (The interactive version needs a little more work, so in the meantime here’s a screenshot.)

zoomable pack layout screenshot

What we did, in more detail:

  • I wrote a parser in PHP which (somewhat) automates the process of getting the budget data into a machine-readable format. (I’ll publish that soon.)
  • Andrew, Alex and David did some analysis of the 10-year capital budget data.
  • Alex got the expenditures data into Tableau, and made a treemap and a couple of other visualizations with it.
  • Andrew and Alex did some analysis of the lobbyist registry data (which is available only as an immense XML file).
  • Andrew filtered out the ‘particulars’ from the lobbyist registry data, and made a word cloud with it.
  • All of us got to know the City of Toronto’s Open Data portal and datasets a lot better.
  • Alex and David filled us in on Better Budget Day (coming in October), and the (underwhelming) changes that the City is making to the 2014 budget process, passed last week.
  • I posted expenditure data to OpenSpending (here).
  • I got expenditures data into a d3.js zoomable pack layout visualization (though I need to polish it a bit more before I publish it).
  • I also tried getting expenditures data into a d3.js stacked barchart viz, but that ended up looking awful. (Oops.)

IMG_20130721_153940 IMG_20130721_153913

Thanks to Andrew, Alex, Alex and David for participating! Thanks also to Anders from OpenSpending, for organizing the global event! We’re floating the idea of getting together again in a few weeks, so if anyone else is interested in joining us, get in touch (gabe@pwd.ca).

This entry was posted in betterbudget, infoviz, urban+digital. Bookmark the permalink.

7 Responses to Toronto budget mini-“hackathon” report

  1. Joy Robson says:

    Well that’s just awesome. Sorry I missed it!

  2. Pingback: Better Budget » Toronto Budget Mini-Hackathon

  3. Derek Pearce says:

    Love the visualizations. How can one find out more about what an allocation actually covers? Specifically I’m curious as to what “Transportation Services” is, as it’s listed separately from the TTC…

  4. gabe says:

    Thanks, Derek! Here’s the website for the City’s Transportation Services division (it’ll give you a sense of what they’re responsible for): http://www.toronto.ca/transportation/

  5. gabe says:

    For those who are interested, here’s the (PHP) parser I built to turn those ugly Excel files into (hopefully complete) CSVs: https://github.com/gabesawhney/toronto-budget-parser/blob/master/parser.php

  6. Looks awesome! I’d love to come to another one of these if you have them again.

Leave a Reply

Your email address will not be published. Required fields are marked *