coronastatus icon indicating copy to clipboard operation
coronastatus copied to clipboard

Display officially confirmed stats on statistics page as well

Open fossecode opened this issue 4 years ago • 8 comments

We can probably get data from one of these API's: https://github.com/soroushchehresa/awesome-coronavirus#api

Any ideas on what stats to display?

fossecode avatar Mar 26 '20 12:03 fossecode

I was thinking about this too. I had the idea of maybe making a separate site, but putting it in here may be a good way to spread the information and have a stronger urge for the CTA's.

There are many stats we can show. I think these are very interesting.

For each country:

  • Growth rate (moving average). Is it going up or down? For both deaths and confirmed cases.
  • Cases per 1M
  • Death per 1M
  • Total confirmed cases
  • Mortality rate
  • Doubling time in days
  • ICU beds per patient (if we can find this)

jelbazi avatar Mar 26 '20 21:03 jelbazi

I have experience in time-series data manipulation. But only in python though. I can create an API that spits out the data we want. But we can also see if something exists already (from the list you shared) and call the endpoint with our current express app.

Option too is probably fastest if there's something already.

What do you think?

jelbazi avatar Mar 26 '20 21:03 jelbazi

Would be nice if you could check if it already exists an API that exposes data for all countries!

fossecode avatar Mar 26 '20 21:03 fossecode

This repo is in active development and already has clear and latest data https://github.com/NovelCOVID/API

They also have an API deployed we can use directly, example for NL: https://corona.lmao.ninja/v2/historical/netherlands

Data from the start of this year too.

jelbazi avatar Mar 26 '20 21:03 jelbazi

I think that looks good!

fossecode avatar Mar 26 '20 21:03 fossecode

Yes right?! :) Javascript too, so could even implement into our own app if needed.

Shall I try to define what metrics we can derive from this data and what to show on our site?

Then discuss if everyone agrees and after that, you (or someone else) can shove it into coronastatus?

jelbazi avatar Mar 26 '20 22:03 jelbazi

Sounds like a plan!

fossecode avatar Mar 26 '20 22:03 fossecode

Some basic stats I think we can glean from the above API.

Charts can be added later too, but this should be relatively simple.

afbeelding

jelbazi avatar Mar 26 '20 23:03 jelbazi