Bug 118472 - Need hours/minutes-level resolution when inserting a chart using Date as X axis
Summary: Need hours/minutes-level resolution when inserting a chart using Date as X axis
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
3.5.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-30 12:51 UTC by qiyi.caitian
Modified: 2018-07-01 14:22 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
An example to reproduce the issue (34.72 KB, image/png)
2018-06-30 16:40 UTC, qiyi.caitian
Details
file prepared from my side (23.52 KB, application/vnd.oasis.opendocument.spreadsheet)
2018-06-30 21:47 UTC, Jacques Guilleron
Details
Time line in xy-chart (25.74 KB, application/vnd.oasis.opendocument.spreadsheet)
2018-07-01 13:26 UTC, Regina Henschel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description qiyi.caitian 2018-06-30 12:51:01 UTC
The current resolution only supports years/months/days, which is too coarse for my data (the date range of which is several hours during a day).
Comment 1 Jacques Guilleron 2018-06-30 14:20:32 UTC
Hello,

Did you try "Format Cells..." by right clicking in a cell. There are several
formats at the end of the Date Category with time format.
Comment 2 qiyi.caitian 2018-06-30 16:30:51 UTC
Yes I tried. But that doesn't affect the resolution of X axis. It still shows all the hours/minutes' data in one day.
Comment 3 qiyi.caitian 2018-06-30 16:40:30 UTC
Created attachment 143229 [details]
An example to reproduce the issue
Comment 4 m_a_riosv 2018-06-30 21:35:02 UTC
Please can you attach the sample file not an image.
Comment 5 Jacques Guilleron 2018-06-30 21:47:31 UTC
Created attachment 143233 [details]
file prepared from my side

I saw the issue by making this file.
The Date/time formats are not displaied on the diagram.
I got the right formating in X Axis by editing the chart(double click on the chart), right click to select the X axis and select "Format Axis..." in contextual menu, and choose Text in Scale Type. Thats all.
Another way is shown on the second sheet. You ave to format your date as standard Number and next to change X axis format Number to Date and time according format.
I have to verify some little thinks and I come back to confirm the bug.
Comment 6 Jacques Guilleron 2018-06-30 23:16:30 UTC
Time part in Chart Date format not displaied also in
LO 3.5.3.2 Version ID : 235ab8a-3802056-4a8fed3-2d66ea8-e241b80 on Windws 7 home. So probably inherited from OOo.
Comment 7 Regina Henschel 2018-07-01 13:26:57 UTC
Created attachment 143248 [details]
Time line in xy-chart

You should use an XY-chart for time lines in the range of hours. The special feature of line charts, that you can get a grid line each month although the real time from month to month is different, is not needed in the scale of hours. In that scale each major interval (date) has the same minor interval (hour).

The time axis for line charts does not allow shorter intervals, because then you would on one hand have equal distances between e.g. 1.Jan, 1.Feb, 1.Mar, and on the other hand have different distance of 31 days and 28 days, which contradicts.
Comment 8 qiyi.caitian 2018-07-01 14:22:15 UTC
XY-chart solved my problem. Thanks!