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 127412 - side of an axis not properly imported from an .xls file
side of an axis not properly imported from an .xls file
Status: RESOLVED FIXED
Product: Gnumeric
Classification: Applications
Component: import/export MS Excel (tm)
1.4.x
Other Linux
: Normal normal
: ---
Assigned To: Jody Goldberg
Jody Goldberg
Depends on:
Blocks:
 
 
Reported: 2003-11-19 18:03 UTC by Frederic Parrenin
Modified: 2006-04-15 11:00 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
The .xls file showing the problem (14.00 KB, application/msexcel)
2003-11-19 18:04 UTC, Frederic Parrenin
Details

Description Frederic Parrenin 2003-11-19 18:03:41 UTC
When you set the Y-axis to be at the right in a XL graph, save it and open
it in gnumeric, the Y-axis is at left in gnumeric but the x-axis is at top.
I will provide an example xls file.

I think it comes from this stupid thing in XL graphs: you have to set the
position of the X-axis in the Y-axis dialog.

Don't forget:
"don't underestimate the number of stupid things that excel can do" 
:-)
Comment 1 Frederic Parrenin 2003-11-19 18:04:17 UTC
Created attachment 21629 [details]
The .xls file showing the problem
Comment 2 Frederic Parrenin 2003-11-20 11:20:36 UTC
In the file ms-chart.c:
 axis properties are read independently: we first read X-axis
properties and then Y-axis properties. However, this is typically a
cross-property: a property in Y-axis (in XL file) influences  a
property of X-axis in gnumeric.
A solution would be to swap "str_pos" after we have read all the chart:
str_pos of X-axis = str_pos of Y-axis
str_pos of Y-aixs = str_pos of X-axis
Sorry, my coding knowledge are roughly zero and I am unable to create
a patch...
Comment 3 Jody Goldberg 2003-11-20 16:15:16 UTC
This is known but will take some work.
The xls file format is not terribly clear on how multiple axes are handled.
I'll play with it shortly.
Comment 4 Frederic Parrenin 2005-02-09 17:35:38 UTC
This is still in 1.4.2.
Comment 5 Jon Kåre Hellan 2005-07-06 08:20:55 UTC
Looks like this has been fixed in CVS. I see 2 axes, x axis at the bottom and y
axis to the right. Is this correct?
Comment 6 Frederic Parrenin 2005-07-11 12:29:15 UTC
This is not fixed, at least in 1.5.2.
Actually, I see two bugs here.
When you open the file in gnumeric and XL:
- Y-axis at right and X-axis at bottom in gnumeric
- Y-axis at left and X-axis at top in XL
And then, if you try to resave the file opened in gnumeric and reopen it, the
Y-axis is at left and the X-axis is at bottom, both in gnumeric and XL.
Comment 7 Frederic Parrenin 2006-04-15 11:00:32 UTC
This seems to be fixed in 1.6.3.