Freyert/reddit_covid

Design image template and output.

Closed this issue · 7 comments

Currently trying to emulate the following image, but with NC state data from The COVID Tracking Project:

image

What I have so far:

image

See build_image and draw_header in present.py

Graph is now showing pct_increase over 2 week periods.

image

Current WIP of trying to translate the original template to Python:

image

Oooh! I like that. I significantly altered the graph because I was getting really confused about what exactly is being calculated in the original graph.

You'll have a good bit to merge in, but I think keeping things on a periodic basis will be super helpful.

The font is much better! And I think you matched the color better. I'd like to keep this color scheme you're working with. I changed everything to pink, but just look for hex codes.

Pulling the changes in and starting day 2 of template! (and fixing the rogue "in" that I don't know why I added)

Regarding confused about what is exactly being calculated in the original graph, which data metric are the numbers below the subheadings? 😅 Is it # of new cases within those two weeks? That's what I assumed but I try to avoid assuming.

Current WIP:

image

I don't feel like I'm calculating the totals right, but I'll be the first to confess the highest level math I took was "what is 70/100 in percent form" ...

Which elements from the original do you still want to include? The change from prior period %? Source? And do you want to use the original blue for the graph, or something else?

[edit: I am incapable of getting the dates in the right order for some reason]

@ktrzonkowski now that I have a better understanding of the original graph I think keeping it as a target is great.

The two header numbers being the sum of new cases added the past 14 week rolling window and the sum of the cases added the current 2 week rolling window.

Then we just calculate the percent difference of those two sums.

The graph still mystifies me a big what they are calculating. I'm assuming it's historical rolling pct change, but I'm not sure.