GnuCash
Contact   Instructions
Bug 797878 - Pie chart displays fractions and long decimal representations
Summary: Pie chart displays fractions and long decimal representations
Status: RESOLVED FIXED
Alias: None
Product: GnuCash
Classification: Unclassified
Component: Reports (show other bugs)
Version: 4.1
Hardware: PC Mac OS
: Normal normal
Target Milestone: ---
Assignee: reports
QA Contact: reports
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-29 20:49 EDT by Greg Hamerly
Modified: 2020-07-30 12:13 EDT (History)
3 users (show)

See Also:


Attachments
Expenses pie chart showing both fractions and long decimal representations. (1.22 MB, image/png)
2020-07-29 20:49 EDT, Greg Hamerly
no flags Details
fixed account-piecharts.scm (28.34 KB, text/plain)
2020-07-30 06:12 EDT, Christopher Lam
no flags Details

Description Greg Hamerly 2020-07-29 20:49:45 EDT
Created attachment 373809 [details]
Expenses pie chart showing both fractions and long decimal representations.

The issue is that when displaying an expense pie chart that uses averaging (weekly, monthly, or yearly), the values displayed are sometimes shown as fractions (e.g. $123 + 123 / 4567) and also as long decimals (e.g. $123.4567890123456).

See the attached screenshot for an example.

I first encountered this bug as reported in https://bugs.gnucash.org/show_bug.cgi?id=797861#c3 -- While the original issue reported there is resolved now that I have updated to Gnucash 4.1, the issue reported in this bug remains for me.

Version info (MacOS, installed via Homebrew)
Version: 4.1
Build ID: 4.1+(2020-07-25)
Finance::Quote: 1.47
Comment 1 Christopher Lam 2020-07-30 06:10:54 EDT
Fixed in maint. All amounts are rounded prior to rendering.
Comment 2 Christopher Lam 2020-07-30 06:12:36 EDT
Created attachment 373810 [details]
fixed account-piecharts.scm

resulting account-piecharts.scm
Comment 3 Greg Hamerly 2020-07-30 12:13:45 EDT
Thanks!

Note You need to log in before you can comment on or make changes to this bug.