DEV Community

Discussion on: Impact of COVID-19 on people's habits worldwide

Collapse
 
patarapolw profile image
Pacharapol Withayasakpunt • Edited

Why everything is 0 or 0%?

Collapse
 
igorlukanin profile image
Igor Lukanin

Oops! I've fixed it. Could you check again, please? 🙏

Everything was 0 or 0% because some zero values were appended to the public datasets. It doesn't make much sense since the number of confirmed cases cannot drop down instantly. I worked around that by skipping a few days on the rightmost part of the timeline.

Collapse
 
patarapolw profile image
Pacharapol Withayasakpunt • Edited

You forgot to smooth the curve.

43%

I think it matters a lot when the graph isn't interactive.

Thread Thread
 
igorlukanin profile image
Igor Lukanin

Could you please elaborate on smoothing? The ups and downs that you see on the charts are not some glitches, they are actual changes due to people's weekly activity patterns. Anyway, thank you for the feedback :)

Thread Thread
 
patarapolw profile image
Pacharapol Withayasakpunt

An idea is last 7 days' average.