@joaopgrassi one problem is that you don't have enough data. But, that shouldn't produce a dip anyway IMO
@bruno-garcia gave me a larger dump to test with.
yeah I may have just the contrib db I think don't remember. I had some troubles restoring it in the past I may try getting the whole db again. Did you maybe looked at the comments I left in the PR? I found a plugin for chartJS that seem to do some of this projections but didn't manage to try it yet.
But looking at your c# code, looks like we could use the Polynomial regression
Yup, I had the idea we could parameterize the algorithm. E.g. type (linear or polynominal) and if polynominal it would be good also to be able to set order (2, 3 or 4).
But to answer your question, no I haven't had time to look at the comments. I'll get back to the PR at some point. Just too much other things in the pipeline atm.
Do you guys have any preference whether we calculate trendline points in frontend or backend?
no preferences from my side
Not for me as well.
Ultimately it would be nice to have a continuous line not two plotted at the same time. Maybe we can do this, because the way it works today is that we send the data for the chart even though we don't have stats.
this is so would have " gaps" in the chart.
For example: if a user requests 2 years of data, when the dataset stops having numbers, instead of returning 0 we return the predictions
I thought the dotted ahead (future) for predicted was nice. It's clear it's different stuff
The contrib DB backup was broken since the server it was copied to was low on disk space and it was getting truncated O_o