-
Notifications
You must be signed in to change notification settings - Fork 4
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
Experiment with log-log plot of recent changes #12
Comments
@davidebbo if this is interesting to you, I think it would be cool to see on a per-state basis. https://gionkunz.github.io/chartist-js/getting-started.html#switching-axis-type |
Ok, I will look at this next weekend. Why do you think it should go on a different page? Isn't it essentially about plotting the same data in yet a different way? |
No you're right, maybe it should be on the same page.
…On Mon, Apr 6, 2020 at 1:56 PM David Ebbo ***@***.***> wrote:
Ok, I will look at this next weekend. Why do you think it should go on a
different page? Isn't it essentially about plotting the same data in yet a
different way?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#12 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA2MN2CIJMTXUYSH5WMAG6TRLIJUDANCNFSM4LVRO7RQ>
.
|
Hoping to look at this as a weekend project. But looking at chartist, I'm not sure how easily it will support this because:
Or am I looking at this the wrong way? Obviously, there is the option of moving to a different graphing solution, but that's kind of a big move! |
Yeah let's see if it can be done within chartist for now.
I think it's an issue of documentation - very few examples show how to do
it, but under the link here is an example where both x and y are plotted.
https://gionkunz.github.io/chartist-js/getting-started.html#switching-axis-type
As far as putting log on both axis - log scales are not built-in to
Chartist, but we're using a log scale through some implementation of
AutoScaleAxis that gets pluggedin - the implementation is in
lib/chartist-logaxis.js - if we're lucky, maybe that can same technique can
be applied on both x and y axes.
|
That sample looks very promising, thanks! |
Whoa that is so cool!!!!! I have been playing with your PR and it is pretty awesome to be able to put smaller nearby localities on the same plot as South Korea or China or Italy. It very clearly tells a policy story. While it's good to be like S Korea, do not be like Japan. |
Glad it's working well! Have you played with https://aatishb.com/covidtrends/ as well? It's nice that is has the animation over time. OTOH, we have far more flexibility in terms of localities and other tweaks. And nice colors :) |
Yeah the animation is very cool. And also pretty useful in this case.
|
Merged and pushed. Thanks again @davidebbo!!! |
Idea from here, https://www.youtube.com/watch?v=54XLXg4fYsc
This idea should probably be plotted on a different webpage.
The idea of this plot is to understand whether a locality is still on the exponential domain or if we have succeeded in leaving it (or if we are resuming it). The idea is to plot log(recent changes) on the y axis versus log(less-recent changes) on the x axis. While we're on exponential growth, this will be on the line given by the exponent, but will quickly depart when not.
The youtube video described graphing log(weekly change) vs log(total cumulative) - but maybe having both sides be a delta would be able to show when (e.g., in Japan) exponential growth restarts after the society resumes social behavior too early.
The text was updated successfully, but these errors were encountered: