migueldeicaza / CovidGraphs

Covid Graphs app
MIT License
93 stars 11 forks source link

Add smoothing to the charts #18

Closed roostr closed 3 years ago

roostr commented 3 years ago

Use 7-day simple moving average + a 30% exponential smoothing to make the charts look smoother.

roostr commented 3 years ago

Without smoothing: IMG_2832 With smoothing: IMG_2831

migueldeicaza commented 3 years ago

I love it! Thank you for the contribution!

I will merge, and next Monday will add a toggle switch for app

roostr commented 3 years ago

Thank you! Played with it a bit, and I feel different smoothing techniques work better depending on the timespan of data shown. Adding a toggle sounds like a great idea. Drop me a line if you'd like to discuss. And thanks again for the repo -- already giving me needed visual context about what's going on in my area.