GNOME Bugzilla – Bug 795475
Empty histogram
Last modified: 2018-04-24 21:19:08 UTC
Created attachment 371252 [details] gnumeric's histogram hits the big screen I said it before. I'll say it again. Thank you very much for maintaining gnumeric. A nice little video is attached. It shows a bug. Specifically, it shows how to use the attached tiny work book to render an empty histogram. I expected the histogram to have bins. What do you think? So, Kingsley
Created attachment 371253 [details] A tiny work book that elicits the bug
Looks like the bins are not correctly evaluated with only two values. Look at the values hidden by the graph.
Hmm, there seem to be two problems: 1) It does not seem to handle the "no label" case correctly, so it ignores the 0.63. For the moment you could work around it by giving your data a label. 2) Even then the chart appears to be missing a column
I have fixed the calculations. For this histogram the first and last bins cannot be shown in the chart since they have an infinite width and so the height of the bar would always be 0. The chart currently seems to ignore the given cutoffs and displays some much wider range. I am not sure whether this is a change in API for the histogram chart, but that issue still requires fixing.
The chart issue is an arguable issue. Currently we are using an "automatic" x-axis range, and the charting engine likes to have additional space on the left and right. This problem has been fixed in the unstable development version. The fix will be available in the next major software release. You may need to upgrade your Linux distribution to obtain that newer version.