HuidaeCho / covid-19

Open source web map for tracking COVID-19 global cases
GNU Affero General Public License v3.0
22 stars 17 forks source link

New feature request: Show c, r, and d of an specific country against 5 other countries #7

Open javierconcha opened 4 years ago

javierconcha commented 4 years ago

Hello Huidae, I just saw your improved display of confirmed, recovered and death plots. It is looking very good. I was just talking about that feature with some of my users.

I am wondering if it is possible to display for instance always Chile, against the 5 countries with the most confirmed cases for comparison. I guess I would have to pull the data from those countries to have them locally, at least once per day.

Thanks!

HuidaeCho commented 4 years ago

Javier,

It is possible. However, my app is a global map and not specific to any country, so I'm not planning to implement features for a single country with multiple provinces at least in this repository. It's already slow and consumes a lot of memory. You can tweak my code to always plot Chile with other top countries.

Thanks, Huidae

HuidaeCho commented 4 years ago

Maybe, it's better to copy index.html to country.html and implement this feature there so we can keep the code base cleanly separated. That's an idea if I implement it later. For now, it's a lower priority.

javierconcha commented 4 years ago

Sounds good! Thanks.

javierconcha commented 4 years ago

I like the chile.html version, especially the new tabs. Thanks! Two more things:

  1. A particular issue for Chile is that the authorities do not give the recovered by provinces, only for the whole country. Therefore, I will adapt the only showing CFR for the whole country.

  2. Some users have asked to have a tab for the comparison between Chile and for instance the USA, Italy, Spain, China. This would require to fetch the data once per day from these countries and keep them local, which is doable (e.g. from your repository), and plot them in an extra tab. However, I am not sure if it makes sense for my particular case since my idea is to show only Chile. I just put it here as a thought.

Thanks again!