I finally updated data.gg
A few weeks ago my son Teddy came home and mentioned, in passing, that his teacher had used data.gg in class.
I was chuffed for about four seconds. Then I remembered what state the site was in. Some of the figures hadn’t been touched in years, the charts looked their age, and the two phone apps were quietly rotting in the app stores. A classroom of kids had been looking at that.
So I got off my arse and fixed it. All of it, more or less.
What data.gg is
Kieran Senior and I started data.gg years ago because Guernsey’s data was locked away in PDFs and scattered web pages, and every idea we had needed an API that didn’t exist. The site collects the island’s published figures and gives them back as charts, JSON and CSV. It is non-profit and always will be.
The data
This was the embarrassing part, so it came first.
The site now has 85 datasets across 24 topics, drawn as 93 charts. Inflation, house prices, crime, bus use, departures and government spending are all current. There are whole new topics for the economy, the environment and fishing, and new charts for things like life expectancy, electric vehicles, sea temperature, fog and Asian hornets.
Some datasets had stalled because the place I used to get them from changed. A few of those have new homes now: the number of banks and investment funds comes from the GFSC, electricity imports from Guernsey Electricity, and GCSE results are shown as Attainment 8 because that is what the States publishes these days.
And some data is just gone. Nobody publishes Condor punctuality any more. I went back and forth on deleting those charts and decided against it. They are a record of the island, and that has value. So they now live in a clearly labelled Archive section at the bottom of each topic. Old data next to fresh data makes a site look abandoned. Old data that says “this is old” looks like a library.
No more database
The data used to live in an Azure SQL database. It now lives in plain JSON files in the GitHub repo.
This is the change I’m happiest with. Updating a figure is now a commit. Every change has a history. Anyone can see exactly what I changed and when, or send a correction. There is no database bill and nothing to back up. For a few hundred kilobytes of public statistics, a database was always overkill.
A quiz, because schools
If teachers are using the site, I wanted to give them something better than a wall of charts. So there is now a quiz: ten questions, drawn fresh from the data every time, with one version for kids and one for grown-ups. Which is bigger? Has it gone up or down? How many hornets?
The questions are generated from the same figures as the charts, so the quiz updates itself whenever the data does. I have been beaten at it by a child, on my own website.
I’m done with app stores
Guernsey Flights and Guernsey Sailings were proper store apps once. Keeping them there meant developer accounts, review queues, annual fees and rebuilding every time Apple or Google moved the goalposts. For two small boards showing arrivals and departures, I can’t be arsed any more.
They are now just pages: data.gg/Flights and data.gg/Sailings. Open one on your phone, add it to your home screen, and it looks and behaves like an app. You can track a flight or a boat and it will tell you when it’s in, as long as the board is open. Proper background notifications are next on the list.
The rest
- A full redesign, with a dark theme, that works on a phone.
- Every chart names its source and how recent it is, and can be shared, viewed as a table or downloaded as CSV.
- A facts page that pulls the records and latest figures into one place.
- The 3D map no longer needs a plugin. It was Unity; it is now three.js.
- Everything runs on .NET 11.
How it got done
I should be honest about this: I did most of it with Claude Code. I’d describe what I wanted, it would do the work, and I’d poke at the result and argue with it. Finding new sources for dead datasets, which is exactly the sort of tedious job that had stopped me for years, turned into an afternoon.
It was not magic. It needed steering, and the deployed site had a mystery gap at the top of every page that took some detective work (stale stylesheets left on the server from an old deploy, getting swept into the CSS bundle). But a rebuild I had been putting off for years got done in a few weeks of evenings.
What next
Background notifications for the flight and sailing boards. Filling a few remaining gaps in the data. And keeping it up to date this time, which is the bit I’ve historically been bad at.
If you know of Guernsey data that ought to be on there, or you spot a number that looks wrong, tell me.
And if you’re a teacher using it in class: thank you. You’re the reason it got fixed.