Breakdown of a council budget by heading

Clear Accounts — a city budget in the open

Client: Valladolid City Council · In production since: 2015

A web application that shows where a city's money comes from and where it goes, heading by heading, from 2011 onwards. Not a PDF of the budget: a site anyone can walk into without knowing public accounting and come out having understood something.

The problem

A council budget has always been public, but public is not the same as understandable. It was published as a table of hundreds of rows in the official nomenclature — chapters, programmes, organic classifications — which only makes sense to people who work inside. The data was there, but it did not answer the questions people actually ask: what costs the most?, what does the thing that affects me cost?, and how does that compare with last year?

What we built

  • The whole budget at a glance: the full breakdown of spending, each block sized in proportion to what it costs.
  • Drill-down from broad area to programme to individual heading, without ever losing track of where you are.
  • Year-on-year comparison back to 2011, with what was budgeted set against what was actually spent.
  • Grouping by policy, so spending is sorted by things people recognise — schools, street cleaning, culture — rather than by accounting code.
  • Payments to suppliers, searchable by description, policy and date, down to the individual transaction.
  • “What do I put in?”: the budget brought down to what it means for one person.

The hard part

The difficulty was never the chart, it was the data. Every financial year arrives with its own structure of headings, classifications shift from one year to the next, and comparing 2011 with 2018 means deciding what is equivalent to what. That normalisation work is what lets the site answer in a second something that would take an afternoon with the original files.

Technology

PHP backend on a relational database · loading and normalisation of each year's budget data · in-browser visualisations · figures downloadable in open formats, so that anyone who wants to redo the sums can.

Inside the system

Spending breakdown: every block sized by what it costs
Spending breakdown: every block sized by what it costs
Home page, with the four ways into the budget
Home page, with the four ways into the budget
Income and spending for the year, budgeted against spent
Income and spending for the year, budgeted against spent
Supplier payment search by policy and date
Supplier payment search by policy and date