autodo-app / autodo

A flexible, intuitive ToDo list app for keeping track of your cars' maintenance needs.
https://autodo-app.herokuapp.com
Other
50 stars 4 forks source link

Statistics Page #41

Closed baylessj closed 4 years ago

baylessj commented 4 years ago

Need to put some content on here. Could have some line graphs of fuel usage and predictions based on the data, maybe a pie graph or two of something?

baylessj commented 4 years ago

Inspiration: https://dribbble.com/shots/5923205-Currency-exchange-platform https://dribbble.com/shots/6512175-Dashboard-Perfomance https://dribbble.com/shots/7471970-Subscription-manager-iOS-app

baylessj commented 4 years ago

Work is progressing on this in the feature/statistics branch. Currently I'm using an EMA filter to make a trend line for the data, but the jagged edges between the data points don't look great.

I'd like to set up spline interpolation between the data points, but finding a good way to do that without requiring a lot of data points is tricky. Found the following resources though:

From the wiki page and a couple posts on SO it seems like Catmull Rom splines are the way to go

baylessj commented 4 years ago

I'm getting annoyed with trying to handle the gazillion little details with this feature now, so I'm going to call it done at the slightly gross looking but not too buggy state that it's at now, and the Catmull-Rom splines and other beautification efforts can be added to a future release.