After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 795475 - Empty histogram
Empty histogram
Status: RESOLVED FIXED
Product: Gnumeric
Classification: Applications
Component: Statistics Tools
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Andreas J. Guelzow
Andreas J. Guelzow
Depends on:
Blocks:
 
 
Reported: 2018-04-23 05:48 UTC by Kingsley G. Morse Jr.
Modified: 2018-04-24 21:19 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gnumeric's histogram hits the big screen (2.59 MB, video/webm)
2018-04-23 05:48 UTC, Kingsley G. Morse Jr.
Details
A tiny work book that elicits the bug (1.87 KB, application/x-gnumeric)
2018-04-23 05:49 UTC, Kingsley G. Morse Jr.
Details

Description Kingsley G. Morse Jr. 2018-04-23 05:48:26 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
Comment 1 Kingsley G. Morse Jr. 2018-04-23 05:49:38 UTC
Created attachment 371253 [details]
A tiny work book that elicits the bug
Comment 2 Jean Bréfort 2018-04-23 06:37:33 UTC
Looks like the bins are not correctly evaluated with only two values. Look at the values hidden by the graph.
Comment 3 Andreas J. Guelzow 2018-04-24 19:04:45 UTC
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
Comment 4 Andreas J. Guelzow 2018-04-24 21:01:50 UTC
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.
Comment 5 Andreas J. Guelzow 2018-04-24 21:19:08 UTC
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.