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 574348 - pie chart colours are treated incorrectly if segment value is (close to) zero
pie chart colours are treated incorrectly if segment value is (close to) zero
Status: RESOLVED FIXED
Product: Gnumeric
Classification: Applications
Component: Charting
1.9.x
Other Windows
: Normal normal
: ---
Assigned To: Jean Bréfort
Jody Goldberg
Depends on:
Blocks:
 
 
Reported: 2009-03-06 05:21 UTC by evanh
Modified: 2009-03-06 09:54 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fixes the issue (653 bytes, patch)
2009-03-06 07:41 UTC, Jean Bréfort
committed Details | Review

Description evanh 2009-03-06 05:21:29 UTC
Colours specified in a pie chart are handled incorrectly if the value of a point is close to zero for all subsequent points.

For example, putting the second column below in a pie chart with segments coloured as per the first column works correctly.

Red   100
Blue    2
Green  50

However, if the value "2" is changed to "0" or "0.01", the green segment changes colour (to non-green).

I have an example spreadsheet containing the problem.
Comment 1 Andreas J. Guelzow 2009-03-06 07:23:41 UTC
please attach the sample spreadsheet (for some reason you cannot do that when you first file the report but you can attach files afterwards)
Comment 2 Jean Bréfort 2009-03-06 07:41:21 UTC
Created attachment 130182 [details] [review]
Fixes the issue

I'll commit this patch later today.
Comment 3 Jean Bréfort 2009-03-06 09:53:54 UTC
Fixed in both branches. Thanks for reporting.
Comment 4 Jean Bréfort 2009-03-06 09:54:23 UTC
Fixed (forgot it).