GithubHelp home page GithubHelp logo

boogheta / coronavirus-countries Goto Github PK

View Code? Open in Web Editor NEW
55.0 55.0 16.0 2.72 GB

COVID-19 interactive dashboard for the whole world

Home Page: https://boogheta.github.io/coronavirus-countries/

License: GNU Affero General Public License v3.0

Shell 4.28% Python 28.41% CSS 7.55% HTML 17.97% JavaScript 41.79%
2019-ncov coronavirus covid-19 d3js dashboard ncov open-source open-source-covid sars-cov-2 vuejs

coronavirus-countries's People

Contributors

actions-user avatar aramse avatar boogheta avatar rouxrc avatar yomguithereal avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

coronavirus-countries's Issues

Fix scale for negative perDay values

  • build minvalues for perday only
  • draw zero line on series
  • disable logarithmic for perday (really close #25) => merge menu lin/log with cumul/daily
  • handle negative stacked

Allow 7-day averages

This tools is one of the best visualizations on the official case data out there. Congratulations 🎉

It would be really cool, if instead of the single values, one could also look at 7-day averages.
Main reason for this is, that relevant data (such as daily confirmed cases) are very noisy (no lab work on weekends, etc.).
This is why many analysts and even law-makers now consider the 7-day rolling average as the more relevant number for comparisons and to detect trends.

Allow to stack cases in multiples mode

  • add interface checkbox in cases title when in multiples
  • handle proper fields:
all tested = {
   tested negative
 + confirmed = {
      recovered
    + sick = {
         confined
       + hospitalized
       + intensive_care
    }
    + deceased
  }
}

adjust cases legend?

  • use different level strokes to display contours

Allow display of new cases as histogram instead of cumulative curve

TODO:

  • Review menu titles to free some space for more switch buttons
  • Add switch menu to display new cases instead of curves
  • Plot it as histograms
  • handle negative new cases on "currently sick"
  • handle hover histograms (+ fix clearTooltip being called too much)
  • Limit number of parallel countries possible in histogram series ? or force small multiples in new cases mode ?

Add annotations by country

TODO:

image exports

Wouldn't it be useful to be able to export a given view in SVG/PNG (with a white/transparent background ?) for further work with other tools ?

Fetch and display vaccination status

The Coronavirus Country Comparator is my goto solution to really understand what's happening in the world. Longterm trends are best visible in this app.

Therefore it would be great to also be able to look at "vaccination" graph (if such data can be obtained easily).

Ideally, this could be combined with an additional "immunity" graph, which takes both vaccination and former infections into account.

In any way: Thanks for this tool!

Force set lower bound of vertical axis to zero

@boogheta Thanks for this excellent site. I keep tracking a few countries, including France. A recent adjustment of their numbers gives a significantly negative confirmed case for May 20, 2021. Would it be possible to always set the vertical axis lower bound to zero, to hide such anomalies?

Add ToggleAll option

As suggested by @bjperson and implemented by @njoyard here https://corona.njoyard.fr

  • add buttons to interface
  • handle legend too big (depends #30)
  • handle url too long : option all with list of unselected ? unnecessary
  • handle small multiples : limit number of columns to a minwidth and start scrolling the div if more? unnecessary

Deprecated JHU data

Source data possibly needs to be updated - I noticed that UK deaths numbers are identical for the last two days.

Readme.md at https://github.com/CSSEGISandData/COVID-19/tree/master/csse_covid_19_data/csse_covid_19_time_series states:

---DEPRICATED WARNING---
The files below will no longer be updated. With the release of the new data structure, we are updating our time series tables to reflect these changes. Please reference time_series_covid19_confirmed_global.csv and time_series_covid19_deaths_global.csv for the latest time series data.

time_series_19-covid-Confirmed.csv
time_series_19-covid-Deaths.csv
time_series_19-covid-Recovered.csv

Figures in time_series_covid19_deaths_global.csv are correct (as per readme warning).

Fine tuning UX

Suggestions from @paulgirard:

  • display small dots on curves by day (and tooltips with value on them?)
  • hover curves should be a line on dots rather than a band
  • in series mode, use radio buttons for cases instead of switches ?

Stack mode

when you switch from 'series' to 'stack' the order of colors doesn't match the countries.

Error consolidating UK data

Running the consolidate_uk.py file is returning the following error:

$ ./bin/consolidate_uk.py > data/uk.csv
Traceback (most recent call last):
  File "./bin/consolidate_uk.py", line 55, in <module>
    print(",".join([d, b, str(countries[b]["confirmed"][i]), str(countries[b]["deceased"][i])]))
IndexError: list index out of range

Complete missing population data

JHU's data is adding new provinces and countries when new ones are reported, so the list will need to be completed from time to time @robindemourat
Here are the few missing as of tonight:

WARNING: missing population for Canada / Northwest Territories
WARNING: missing population for Canada / Recovered
WARNING: missing population for Canada / Yukon
WARNING: missing population for World / Saint Kitts and Nevis
WARNING: missing population for World / Mali
WARNING: missing population for World / Guinea-Bissau
WARNING: missing population for World / Kosovo
WARNING: missing population for World / West Bank and Gaza
WARNING: missing population for World / MS Zaandam
WARNING: missing population for World / Burma

https://docs.google.com/spreadsheets/d/1e703pe3GmBQt0i2yAOS0F6Bhxy91U1-NTB6JMRSTzc0/edit?usp=sharing

Originally posted by @boogheta in #1 (comment)

Add granularity for specific countries from local data sources

Sources : https://coronavirustechhandbook.com/data
https://github.com/covid19-eu-zh/covid19-eu-data
https://covid19-eu-data-cache.now.sh

Check Spain data

NOTAs announce:

El objetivo de los datos que se publican en esta web es saber el número de casos acumulados a la fecha y que por tanto no se puede deducir que la diferencia entre un día y el anterior es el número de casos nuevos ya que esos casos pueden haber sido recuperados de fechas anteriores. Cualquier inferencia que se haga sobre las diferencias de un día para otro deben hacerse con precaución y son únicamente la responsabilidad del autor.,,,,,,,,
Los datos de estas comunidades son datos de prevalencia (personas ingresadas a fecha de hoy). No reflejan el total de personas que han sido hospitalizadas o ingresadas en UCI  a lo largo del periodo de notificación(CL(UCIs)-GA(UCIS)-CM*-MD**),,,,,,,,
* Desde el día 11/04/2020 las cifras de hospitalizados de CM son casos acumulados. Previamente se refieren a personas ingresadas ese día.,,,,,,,,
* Desde el día 12/04/2020 las cifras de UCIs de CM son casos acumulados. Previamente se refieren a personas ingresadas ese día.,,,,,,,,
* Desde el día 26/04/2020 las cifras de Hospitalizados y UCIs de CM son casos acumulados. Previamente se refieren a personas ingresadas ese día. Se actualizará la serie cuando esté disponible,,,,,,,,
NOTA2:Se excluyen de la serie las notificaciones de personas  con anticuerpos positivos sin síntomas en el momento de realización de la prueba en los que no se puede establecer un momento de contagio ni si han padecido o no la enfermedad.,,,,,,,,      

There are also issues with confirmed cases values which are not reported anymore on many lines
This can be seen for instance here: https://boogheta.github.io/coronavirus-countries/#country=Spain&confirmed&recovered&hospitalized&intensive_care&deceased&log&multiples&places=Castilla%20La%20Mancha,Entire%20Spain,Galicia,Madrid&alignTo=deceased

Stronger color differences

Since I'm at it, it would be great if the graph colors could be more easily be distinguished. It's sometimes nearly impossible to tell at which graph you are looking at.

Bildschirmfoto 2021-02-27 um 21 48 57

It appears countries have a fixed color. Maybe there could be an alternative, where a fixed palette of colors, beginning with the most different ones (straight blue, red, green, ..) which would then get sequentially assigned to a dataset only after it got selected. The downside is, that colors would change by the order in which you select sets. But for me, this would still lead to a better experience.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.