Skip to content

Work-in-progress 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.

Notifications You must be signed in to change notification settings

hjst/covid-streak

Repository files navigation

COVID-19 streak (work in progress)

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.

What?

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.

Screenshot showing the stats view for Herefordshire

Why?

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.

How?

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.

This is deeply flawed / you can't rely on this data

Yes. Knowing this, you may still find it useful.

About

Work-in-progress 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.

Topics

Resources

Stars

Watchers

Forks