xunhuang / covid-19

MIT License
17 stars 16 forks source link

[Rough draft] Ideas to allow more graphs, power, and simplicity #76

Closed aschleck closed 4 years ago

aschleck commented 4 years ago

The code here is super rough, I only did this for the states page, etc, but here's some ideas.

What do you think?

The original view, just slightly changed image

The detailed tab image

The detailed tab when selecting "area" image

aschleck commented 4 years ago

Oh I forgot to think too hard about cumulative data, not quite sure what to do with that yet. One option would be able to have a toggle next to each thing in the legend.

So it'd read like

and cumulative would be grayed out or colored depending on if it was enabled. There's probably something better we could do though, just haven't thought of it.

xunhuang commented 4 years ago

I like a lot of the concepts that you laid out and you pointed out one of the things that I wanted to do but haven't, that is the unify all the data under AllData.json a number of places that I haven't done are :

1) county_gps (that really shouldn't have hospital data) 2) test data 3) some projection data (peak death, later on peak hospitalization) 4) future (I'm going to pull int he social distancing scores from onecast)

Other comments: 1) I like folding the summary into At a glance a lot. 2) I want a section on projections 3) want a place to show how the curve is getting flattened, how we know when we are beating the epidemic. 4) I don't know if all the graphs can be unified under Details since some graph will have more specialized details, like the hospitalization will need ICU beds/beds as reference, and possibly marry the Peak Hospitalization graph for the future? Some people want to see daily and some people want to see new. Maybe we can use complete data unification as a goal, but allow flexibility of working through one graph at a time and allow customization. 5) I'm a bit surprised that you merged the Graph/Map section with the tables. I kept them separate because one is graph the other is data. Not opposed to trying the new way, but it was getting super crowded up to for mobile. 6) btw, I really really like NYT's layout of their GUI, maybe we can copy elements of their design.

On Sun, Apr 12, 2020 at 2:54 PM April Schleck notifications@github.com wrote:

Oh I forgot to think too hard about cumulative data, not quite sure what to do with that yet. One option would be able to have a toggle next to each thing in the legend.

So it'd read like

  • Confirmed (cumulative)

and cumulative would be grayed out or colored depending on if it was enabled. There's probably something better we could do though, just haven't thought of it.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/xunhuang/covid-19/pull/76#issuecomment-612681703, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFSGF4LZ2UDFBJ4URPUTWTRMIZ77ANCNFSM4MGSIBHQ .

aschleck commented 4 years ago

I'm pretty lazy so I was thinking about just using the County/Metro/State etc objects to give a consistent interface rather than updating the data, but fixing the underlying thing sounds better!

2) is this the existing "Peak Death" section or something new? I meant to have "Projected deaths" or something in my detailed view providing the info from Peak Death, just forgot. When you say a section, do you mean a tab? So like "At a glance", "Projections", "Detailed", etc? 3) do you have some ideas on how you would show that? Would that also need to be a separate tab? 4) hmm you definitely have a better sense of things than me, but I was thinking about just showing it together and letting the user adjust as necessary. Is the ICU info already shown? Also, sorry for the dumb question: what's the difference between daily and new? 5) Yeah, I don't have a strong opinion here. I think I was just adjusting margins and got mad that it looked attach to my graphs, so did something random. Removing it makes the page really short, I'm happy to leave it where it is today. In my defense putting it as a tab allows me to test small screen sizes better :) 6) do you have a link to this? Is it this? I like that page but it's a story and I don't know that it'd fit well for us.

What do you think are the right next steps here?

xunhuang commented 4 years ago

I can't believe I didn't include think, yes, it's that one, fo the state : https://www.nytimes.com/interactive/2020/us/california-coronavirus-cases.html#county

As new steps, how about this? 1) adopt the new design you put out. a. At a glance (current cases) b. Details (show the recovery & death, test, hospitalization) in another level tab like Maps. c. double d. Peak death (which I will change to projection when I have more like this https://covid19.healthdata.org/projections https://covid19.healthdata.org/projections?fbclid=IwAR2QB2ziCbLyEASRupPdUegRpZNtnwQ3NyIUNvE7Lah0WK9Mq1H2tQag1sc.) Maybe doubling time can go there too after it loses novelty. e. map 2) move the Counties/Capita back to the table below, at least for now.

the flattening the curve ideas:

I do have ICU capacity information as hospital data, but currently not shown.

On Sun, Apr 12, 2020 at 3:36 PM April Schleck notifications@github.com wrote:

I'm pretty lazy so I was thinking about just using the County/Metro/State etc objects to give a consistent interface rather than updating the data, but fixing the underlying thing sounds better!

  1. is this the existing "Peak Death" section or something new? I meant to have "Projected deaths" or something in my detailed view providing the info from Peak Death, just forgot. When you say a section, do you mean a tab? So like "At a glance", "Projections", "Detailed", etc?
  2. do you have some ideas on how you would show that? Would that also need to be a separate tab?
  3. hmm you definitely have a better sense of things than me, but I was thinking about just showing it together and letting the user adjust as necessary. Is the ICU info already shown? Also, sorry for the dumb question: what's the difference between daily and new?
  4. Yeah, I don't have a strong opinion here. I think I was just adjusting margins and got mad that it looked attach to my graphs, so did something random. Removing it makes the page really short, I'm happy to leave it where it is today. In my defense putting it as a tab allows me to test small screen sizes better :)
  5. do you have a link to this? Is it this https://www.nytimes.com/interactive/2020/us/coronavirus-us-cases.html? I like that page but it's a story and I don't know that it'd fit well for us.

What do you think are the right next steps here?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/xunhuang/covid-19/pull/76#issuecomment-612686690, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFSGF6LJTBYMHKW2HOMHATRMI7ATANCNFSM4MGSIBHQ .

xunhuang commented 4 years ago

btw, I looked at file sizes from the build directory build/static/js, 20M in that directory! if we want to reduce that, we need to take a much deeper dive. the AllData.json uncompressed is 8M and compressed is 5M.