Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Per province/state time series graphs with series synchronization #346

Open
afrantzis opened this issue Mar 9, 2020 · 10 comments
Open

Per province/state time series graphs with series synchronization #346

afrantzis opened this issue Mar 9, 2020 · 10 comments

Comments

@afrantzis
Copy link

@afrantzis afrantzis commented Mar 9, 2020

Hi everyone and thank you for all the great work!

I wanted a visual and interactive way to see how trends in various countries compared to each other, so I created a light and simple graph web page at:

https://afrantzis.com/covid-19/

You can plot the time series per state/province normally, but, in addition, you can "synchronize" the time series lines so that they start approximately at a (user) specified case count. This effectively overlays the time series by removing the time offset between them, which makes eyeballing trends easier. Hope others find this useful, too!

@2fst4u
Copy link

@2fst4u 2fst4u commented Mar 9, 2020

It would be good if all the seperated provinces were grouped into countries.

@rtwfroody
Copy link

@rtwfroody rtwfroody commented Mar 9, 2020

I built something very similar: http://casualhacker.net/covid19/

I haven't done synchronization, but I have been thinking I want to.

@afrantzis
Copy link
Author

@afrantzis afrantzis commented Mar 10, 2020

@2fst4u Yeah, the province/state separation is quite inconsistent at the moment, so I have changed the graph to group by whole countries instead. Thanks!

@afrantzis
Copy link
Author

@afrantzis afrantzis commented Mar 10, 2020

@rtwfroody Nice! I like the idea of being able to display the data relative to the population; it provides a different and interesting perspective on the trends.

@Swartzlander
Copy link

@Swartzlander Swartzlander commented Mar 10, 2020

I've been posting semi-log data to distinguish exponential growth curves from other dynamic behavior such as bubble phases. Representative doubling times are also provided.
The URL is
http://www.cis.rit.edu/~grovers/COVID/Coronavirus_to_01Mar20.jpg

This plot will be updated daily as time allows. The file name will not change.

@nrhine1
Copy link

@nrhine1 nrhine1 commented Mar 10, 2020

I've created some Python utilities to enable this type of plotting.

https://github.com/nrhine1/COVID-19-pyvis

@Bost
Copy link

@Bost Bost commented Mar 11, 2020

I built something very similar: http://casualhacker.net/covid19/

https://afrantzis.com/covid-19/

@rtwfroody @afrantzis 👍 Would you share your code please? Thanks.

@rtwfroody
Copy link

@rtwfroody rtwfroody commented Mar 11, 2020

@afrantzis
Copy link
Author

@afrantzis afrantzis commented Mar 12, 2020

Hi everyone, I have made a few updates to the web page, which I hope people will find useful/interesting:

  1. Added an automatic synchronization option to try to get the best trend match for all displayed time series.
  2. Show how much each series has shifted during synchronization (e.g., "France (shifted left 6 days)").
  3. Manual synchronization (i.e., sync at a specific case count) now maintains the whole range on the x-axis (i.e., no longer changes the range to start from the sync point).
@afrantzis
Copy link
Author

@afrantzis afrantzis commented Mar 12, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
7 participants