Some reports have end date +1 week in the future #706
Labels
bug
Reports of unexpected problems or errors
third party
Relies on or blocked by a third party (dependency, vendor, platform, etc.)
Milestone
Since upgrading to v2.x.x, I noticed that a couple of the graph's automatic date x-axis uses a future date. Thus, when you switch to a shorter time frame (e.g., 1 week, 2 weeks) you are potentially missing a lot of data.
This seems to only happen on Average Feeding Duration and Diaper Change Types reports, but we also aren't using all of the reports so it could be happening on others. Other reports we use (Feeding Amounts, Sleep Totals, and Sleep Pattern) show the correct last date.
Neither of these have an accidental log in the future, and the JS returned does show the correct date for the latest entry.
I suspect this is a ploty issue as I was able to replicate it with the JS version with the same data points. Interestingly, if I remove some of the data points (any of them), it renders the x-axis correctly. It might be a limit to the number of plots before autorange freaks out? Anyways, manually setting the range and disabling autorange seems to fix the issue. I'm not sure it is worth the trouble to change the graph configs for Baby Buddy but thought I'd log the bug anyways!
The text was updated successfully, but these errors were encountered: