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 611362 - Line charts don't format date labels correctly
Line charts don't format date labels correctly
Status: RESOLVED FIXED
Product: Gnumeric
Classification: Applications
Component: Charting
git master
Other All
: Normal enhancement
: ---
Assigned To: Jean Bréfort
Jody Goldberg
Depends on:
Blocks:
 
 
Reported: 2010-02-28 08:43 UTC by Lars Luthman
Modified: 2010-03-02 16:11 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
File that demonstrates the bug (2.69 KB, application/x-gnumeric)
2010-02-28 08:43 UTC, Lars Luthman
Details

Description Lars Luthman 2010-02-28 08:43:26 UTC
Created attachment 154886 [details]
File that demonstrates the bug

I have one column of dates and one column of numerical data. If I create a line chart using the dates as labels, they will be printed along the X axis as numerical values, not as dates, and there does not seem to be a way to change their format to make them appear as dates instead.

Attaching a sample file. The chart was created as follows:

1. Select B3:C13
2. "Insert" -> "Chart"
3. Select plot type "Line", subtype "Unmarked line plot".
4. Select "Use first series as shared abscissa"
5. Click "Forward". The date values are now shown as numbers, not dates, along the X axis. Note that there is no "Format" page for the X axis.
6. Click "Insert" and place the chart on the page.

The dates are shown as numerical values along the X axis, not as dates.
Comment 1 Jean Bréfort 2010-02-28 10:51:59 UTC
Seems that the cell nodes in your file miss a ValueFormat property. Just typing again the dates in 1.10 fixes the issue. Probably something that has been fixed recently, but it's a bit annoying that old files are not correctly imported.
Morten, any idea?
Comment 2 Lars Luthman 2010-02-28 11:03:23 UTC
The file was created using 1.10.0.
Comment 3 Jean Bréfort 2010-02-28 11:17:03 UTC
Really, that makes things even more weird.
Comment 4 Morten Welinder 2010-02-28 16:26:44 UTC
This is a "line" graph.  I think you meant to use an xy type graph with
the dates as the X and the rest as Y.

The actual X axis in your graph takes numbers 1, 2, ...  That's why
there is no format page -- if you we to set the format it would apply
to the ordinals, not the labels, and hence not be terribly useful.

I doubt anyone actually looked at this before, but it should of course
be made to work, somehow.

--> Enhancement.
Comment 5 Jean Bréfort 2010-02-28 16:45:23 UTC
Morten, this is not the issue, the labels should be displayed using the cell formats, and this is what I get when I use a new file, but not with his sample.
Comment 6 Morten Welinder 2010-03-02 16:11:38 UTC
This problem has been fixed in our software repository. The fix will go into the next software release. Thank you for your bug report.

(But you should still use an xy graph for this.  That will correctly handle,
for example, missing days.)