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 540719 - barchart legend order is reversed
barchart legend order is reversed
Status: RESOLVED FIXED
Product: libgoffice
Classification: Other
Component: Graphing / Charting
0.7.x
Other All
: Normal enhancement
: ---
Assigned To: Emmanuel Pacaud
Jody Goldberg
: 432920 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2008-06-29 04:05 UTC by Darrell Kindred
Modified: 2008-11-11 13:03 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
sample barchart with reversed legend (8.73 KB, image/png)
2008-06-29 04:17 UTC, Darrell Kindred
Details

Description Darrell Kindred 2008-06-29 04:05:07 UTC
In barcharts, the order of items in the legend (key) is reversed from the order in which they are displayed in the stacked bar chart -- the top item in the legend is the bottom item in the bar.  It would be much easier to read if they were displayed in the same order.

Steps to reproduce:
1. Reports -> Assets & Liabilities -> Asset Barchart  (or any other barchart, such as Income or Expense barcharts)

Actual results:
The bottom item in the stacked bar chart appears as the top item in the legend.

Expected results:
The bottom item in the stacked bar chart should be the bottom item in the legend.

Does this happen every time?
Yes.
Comment 1 Darrell Kindred 2008-06-29 04:17:17 UTC
Created attachment 113592 [details]
sample barchart with reversed legend
Comment 2 Andreas Köhler 2008-07-05 22:48:57 UTC
We simply use libgoffice to create our graphs, as can be seen at http://svn.gnucash.org/trac/browser/gnucash/branches/2.2/src/gnome-utils/gnc-html-graph-gog.c#L398 .

Almighty goffice drivers, is this possible somehow?
Comment 3 Jean Bréfort 2008-07-06 05:21:58 UTC
The solution might be to add a switch in the legend code and change its value for stacked bar/col plots. Seems that OOo does something like that, I could not test with XL.
Comment 4 Jody Goldberg 2008-07-14 10:53:19 UTC
Simple fix.  Patched for 1.7.1
Comment 5 Jean Bréfort 2008-11-11 13:03:37 UTC
*** Bug 432920 has been marked as a duplicate of this bug. ***