UK Local Authority COVID Tracker

Hi all,

Using the excellent German COVID-19 widget as a basis, I hacked together a crappy UK equivalent for Local Authorities. It shows today’s case rate, yesterday’s rate in brackets, and the overall total cases in that area. Just update the const ltla up top to your LA.

I’m sure others can improve the code quite a bit. I was hoping to replicate the incidence level used by the German widget but the UK Gov doesn’t provide that via JSON (yet). The GET request for unreleased daily COVID stats also takes ages to resolve but it works.


I’d love to get to something like this, with the mini bar chart, but one step at a time.

UK Gov developer docs here, for those interested.

1 Like