GNOME Bugzilla – Bug 700343
Several issues with chart based reports in 2.5.2 and onwards
Last modified: 2018-06-29 23:16:00 UTC
That is releases 2.5.0 and 2.5.1 in Windows 7 64 bit. Per my lengthy thread incorrectly titled "Another 2.5.1 request - this for reports with charts" several chart based reports do not show the expected charts. When options to show tables are selected, they appear. Release 2.4.13 does show charts, and even the "Welcome to GnuCash" report shows three charts in that release. None appear, however, when built in the 2.5.0 or 2.5.1 releases.
In release 2.5.2 charts seem to be built and they eventually appear, at least in the Assets Over Time Report. However, the report takes around 10 minutes to be built in the default form and when it does appear it overlaps with the list of bars if it is widened to 800 pixels. In the default 13 interval chart at the default 400 pixel width the bars are too crowded to see clearly.
Release 2.5.3 in Windows 7 64 bit with lots of registers open, all in register2 view barchart reports take a very long time to generate and they still have too many dates labelled in the horizontal axis to prevent overlap of text and the legend overlaps the chart, both in the default 400 pixel width 13 interval as noted in comment 1 and in wider widths with more intervals too.
This report marks multiple issues: 1. chart based reports not working (in 2.5.1 and 2.5.0). This was fixed somewhere in the 2.5.2 cycle, so I'll ignore this. I have changed the title of this bug to better match the remaining issues. 2. bar charts rendering very slowly in 2.5.2 and onwards. I can't reproduce this. I have tried the assets over time report you mention in comment one. On a Windows XP machine running inside a VM, with 1G of RAM, this report loads in less than 10 seconds. This includes the table. By contrast the same report takes 55 seconds on 2.4.13 on my (fast) development machine with plenty of RAM. So I don't know why it's so slow on your system. How many data points do you have in the "default form" ? 3. The legend overlaps with the graph area when defining a wider report area. Interestingly this only happens on Windows. I can reproduce this on my Windows XP test machine, but my linux machine doesn't have this. My first guess would be this is a bug in webkitgtk that has been fixed in a more recent version. Our Windows build uses webkitgtk 1.2.x, while my linux machine uses webkitgtk 1.10.x. I'm not sure I can do much about this other than attempting to use a more recent webkitgtk for our windows build. Unfortunately webkitgtk doesn't build directly on Windows (at least not the versions we have attempted so far). So someone will have to cross-compile it. 4. Too many data labels on the horizontal axis. I can reproduce this on both Windows and Linux.
Update for Release 2.5.5 in Windows: 1. In my limited tests I found no issues. 2. Speed is improved. On my Windows 7 machine the lag is about like release 2.4.13 for simple charts. 3. In the net worth line and bar charts the legend is still overlapping the chart slightly 4. When the chart should be omitting some horizontal axis data labels to avoid label overlap it continues to show all labels.
In release 2.5.8 the speed is much better in a Wndows XP environment. The most serious flaw is that when there are many intervals the x-axis labels overlap instead of omitting some labels so they do not overlap.
Agreed. The overlapping labels problem is on my list of things to look into. I know where it goes wrong, but it may take some work to get it right.
I have looked at this again today, but it won't be easy to fix unfortunately. I certainly won't be able to get this right for 2.6. As this bug report is more of a laundry list reporting several issues with the reports in 2.5, I have chosen to create a separate bug report for the x-axis overlapping labels to make that particular issue easier to track - see bug 720934. Please follow up any comments on that bug. I will close this bug now.
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=700343. Please update any external references or bookmarks.