Please note: Currently Scottish UTLAs aren't supported as historic data isn't available. I'd also like to add support for more visualisations and different geographic sub-divisions, when time allows.
Web page that fetches the latest UK data on new COVID-19 cases per day for an area, and displays how many days it has been since the last confirmed case.
I was wondering how many new cases were being diagnosed in my city per day, and if was declining. Were we maybe on a "winning streak" of no new cases? I found the GOV.uk COVID-19 data API, but couldn't find a historical breakdown of the data I wanted at a local level, or the sort of visualisation I had in mind. Thankfully, with the API, it wasn't hard to build.
You select an Upper-Tier Local Authority area within the UK, and the page fetches data on new cases (by specimen date, rather than reported date) for the last 1000 days for that area. Any day with 0 new cases is considered to be part of a "winning streak".
For implementation details see the source of the stats.html page.
Yes. Knowing this, you may still find it useful.