You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unfortunately, in this case, it looks like this issue has been around for a while and has been hiding. It was fixed in #821 and in the latest version of Frappe Books
What happened is that the backend logic tries to figure out how to arrange and count the items needed for the graphs. In doing so, it subtracts 1 from a count and then divides by that subsequent value. As "Year to Date" starts with January, there will only be one item collected, and when 1 is subtracted from the items collected, there is 0 items/results remaining. That value (0) will be used in the denominator to try and divide by 0... which resulted in those (excessive) errors
Note: The line graph may look empty in the latest update, but the values are there and as soon as we hit February 1st (next Thursday), the line graph will show up as expected. The reason they don't show up now is that there is only one set of values for each of the profit and loss points, and when February hits, you'll have two sets of values each which will show up as expected.
This has been part of the design since the feature had been added. IMO, it should be updated so if there is only set of values, you can at least see them on the graph. --> this will likely be in a future feature update
Expected Behavior
It should stay within the axis like for filter "this year"
Current Behavior
P&L graph is going out of axis in dashboard when "Year to Date" is selected
Steps to Reproduce
No response
FrappeBooks Version
0.20.1
Path or Feature name
Dashboard
Country
Pk
Language
EN
OS
Macos (Apple Silicon)
Additional OS Info
No response
The text was updated successfully, but these errors were encountered: