Bug 68679 - Bar and Column charts do not allow timestamps (Date axis scale groups values by day)
Summary: Bar and Column charts do not allow timestamps (Date axis scale groups values ...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Chart (show other bugs)
Version:
(earliest affected)
3.4.0 release
Hardware: x86-64 (AMD64) All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
: 118310 (view as bug list)
Depends on:
Blocks: Chart
  Show dependency treegraph
 
Reported: 2013-08-28 19:25 UTC by pinus
Modified: 2024-01-29 04:34 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:


Attachments
Simple Test Case Showing Time Stamp Bar Chart Problem (13.60 KB, application/vnd.oasis.opendocument.spreadsheet)
2013-09-24 02:20 UTC, Joel Madero
Details

Note You need to log in before you can comment on or make changes to this bug.
Description pinus 2013-08-28 19:25:10 UTC
When creating e.g. a bar chart it is not possible to use timestamps. A timestamp contains a date and a time.

It is allowed to use a date column for the x-axis and a value for the y-axis. What happens is that the x-axis is stretched depending on the date value. If your data series is missing a value for e.g. a day there is a hole in the graph. This works as expected.

What's missing is the option to add a time to the date. If you want to show the values of one day, with values in the morning and in the evening, this is not possible. You can converte the date to a string but the output is different because of the missing space between the values around noon.
Comment 1 Joel Madero 2013-09-24 02:19:54 UTC
Thank you for reporting this issue! I have been able to confirm the issue on:
Version 4.1.1.2 
Platform: Bodhi Linux 2.2 x64
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 
As I've been able to confirm this problem on an earlier release I am changing the version number as version is the earliest version that we can confirm the bug, we use comments to say that the bug exists in newer versions as well.

Marking as:

New (confirmed)
Normal - can prevent high quality work
Medium - default, seems appropriate

Attached: Simple test case showing problem
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 
LibreOffice is powered by a team of volunteers, every bug is confirmed (triaged) by human beings who mostly give their time for free. We invite you to join our triaging by checking out this link:
https://wiki.documentfoundation.org/QA/BugTriage

There are also other ways to get involved including with marketing, UX, documentation, and of course developing -  http://www.libreoffice.org/get-help/mailing-lists/. 

Lastly, good bug reports help tremendously in making the process go smoother, please always provide reproducible steps (even if it seems easy) and attach any and all relevant material
Comment 2 Joel Madero 2013-09-24 02:20:20 UTC
Created attachment 86428 [details]
Simple Test Case Showing Time Stamp Bar Chart Problem
Comment 3 QA Administrators 2015-07-18 17:43:21 UTC Comment hidden (obsolete)
Comment 4 Buovjaga 2015-10-17 13:42:04 UTC
Still confirmed.

Win 7 Pro 64-bit Version: 5.1.0.0.alpha1+
Build ID: 186f32f63434e16ff5776251657f902d5808ed3d
TinderBox: Win-x86@39, Branch:master, Time: 2015-10-16_09:42:47
Locale: en-US (fi_FI)
Comment 5 QA Administrators 2016-11-08 11:28:25 UTC Comment hidden (obsolete)
Comment 6 Regina Henschel 2017-10-14 16:36:18 UTC
"day" is still the smallest unit for a date axis.
I have used Version: 6.0.0.0.alpha0+
Build ID: 6c68f38bc28bb55a4f0d53b8f38957516d3935d1
CPU threads: 4; OS: Windows 6.1; UI render: default; 
TinderBox: Win-x86@62-TDF, Branch:MASTER, Time: 2017-09-04_22:05:26
Locale: de-DE (de_DE); Calc: group
Comment 7 QA Administrators 2018-10-15 02:50:21 UTC Comment hidden (obsolete)
Comment 8 QA Administrators 2021-03-18 04:18:20 UTC Comment hidden (obsolete)
Comment 9 QA Administrators 2023-03-19 03:25:50 UTC Comment hidden (obsolete)
Comment 10 Stéphane Guillou (stragu) 2024-01-29 04:27:52 UTC
Reproduced for Bar and Columns charts in recent trunk build:

Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 2cedb1a19ad605df4e148589e9027512e4dd9265
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

... and since LO 3.4, when the Date type for axes was added.

As Regina pointed out, the smallest resolution for the Date type is "Days" when editing the axis scale.

(Partial) workaround is still to use text, either by converting source data (as in comment 0) or by using the type "Text" for the axis scale.

Setting back severity to
Comment 11 Stéphane Guillou (stragu) 2024-01-29 04:34:28 UTC
*** Bug 118310 has been marked as a duplicate of this bug. ***