About

What am I seeing?

Octolamp is a data visualization tool for viewing United Kingdom local election results. It started as what I thought would be a simple holiday project to build a web app for my politics-obsessed brother, but eventually grew to be a lot bigger. If you're curious about how it works under the hood, check out the relevant page on my website. If you're confused about how local government works, check out the explanation page.

Clicking on an area on the map will pull up the council composition following the election in the year selected by the year slider. Because local-government is multi-tier, there are options to change the tier you are viewing and filter councils by certain properties.

Overview

The results panel (on the right) shows:

The analysis panel (on the left) gives you five main ways to modify the map: by changing the year.
  1. Changing the year.
  2. Toggling whether to include previous years' elections.
  3. Changing the area.
  4. Toggling whether to view only changes in control, or all elections.
  5. Changing the coloring method.
The following coloring methods are available: Note that the shading for party strength and party change are not linear — they are scaled by a power of ~0.6. For party change, areas with no party presence to begin with are colored in gray, not white. More detailed clarifications on some parts of the map and UI can be found in the Notes section below.

Legend

Code Name Color Notes
CON Conservative
LAB Labour
LD Liberal Democrat
REF Reform UK
GRN Green
SNP Scottish National Party
PC Plaid Cymru
UKIP UK Independence Party
NOC No overall control
IND Independent Only used for wards.
OTH Other party Only used for wards.
OTH Other party or independent Non-ward data groups them together.
Term Definition
GAIN Won control of a council from another party's control or no overall control.
HOLD No change to council control.
LOSS Lost control of a council from a majority to no overall control.
INIT The first election for the council, i.e. no change or hold.
(blank) No keyword indicates that there is insufficient data to determine control change.
Explanations of local government terms are available here.

Notes

Wards

Local authority districts (LADs)

Omissions

Octolamp uses data adapted from spreadsheets published by the UK House of Commons Library. This data is not consistent and therefore some features are unavailable.

One-offs

A word of warning

The data this project is built off of has had errors that I have had to fix. These include:

...this was parliamentary data I was using. All this is to say that while I have strong faith in the overall reliability of the data used, you may still find errors.