Bug 137933 - XLSX interoperability: not existing dates are handled different on date axis in chart
Summary: XLSX interoperability: not existing dates are handled different on date axis ...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Chart (show other bugs)
Version:
(earliest affected)
7.1.0.0.alpha0+
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: OOXML-Chart Chart-Enhancements
  Show dependency treegraph
 
Reported: 2020-11-02 12:34 UTC by Regina Henschel
Modified: 2022-12-10 16:53 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
example with manually set date start and interval (19.64 KB, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet)
2020-11-02 12:34 UTC, Regina Henschel
Details
Comparison LibreOffice 7.1 master and MSO 2010 (129.79 KB, image/png)
2020-11-04 10:37 UTC, Xisco Faulí
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Regina Henschel 2020-11-02 12:34:05 UTC
Created attachment 166934 [details]
example with manually set date start and interval

Open attached document in Excel and in LibreOffice.
The first date category is set to 2019-12-31, the main grid to 1 month. With this setting you get the non existing date 31.Feb.2020.

Excel resolves non existing dates so that it uses the next previous date in that month, and use the original day number for the next months.

LibreOffice resolves a non existing date so, that it goes a distance forward as if 31.Feb.2020 exists but use the really existing date then. For further months this new date it taken as start.

I think, that the way Excel does it, is the better way.

I come along this problem, when discussing the still open issue https://issues.oasis-open.org/browse/OFFICE-2119 in the OASIS ODF TC.
Comment 1 Xisco Faulí 2020-11-04 10:37:48 UTC
Created attachment 166995 [details]
Comparison LibreOffice 7.1 master and  MSO 2010
Comment 2 Xisco Faulí 2020-11-04 10:38:32 UTC
Hi Regina,
Not sure if I can reproduce what you reported, see the attached comparison.
Comment 3 Regina Henschel 2020-11-04 11:56:30 UTC
(In reply to Xisco Faulí from comment #2)
> Hi Regina,
> Not sure if I can reproduce what you reported, see the attached comparison.

The comparison shows it clearly. Look at the position of the main grid and the date labels at the date axis.
   LO has 2018-12-31, 2019-01-31, 2019-03-03, 2019-04-03
Excel has 2018-12-31, 2019-01-31, 2019-02-28, 2019-03-31, 2019-04-30

So Excel keeps the major grid being at the last day of the month.
Comment 4 NISZ LibreOffice Team 2020-12-09 08:42:40 UTC
Conforming behavior in:

Version: 7.2.0.0.alpha0+ (x64)
Build ID: 796c7f612603490dda9277ced0f6ab3cce3bc116
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: default; VCL: win
Locale: en-US (hu_HU); UI: en-US
Calc: CL
Comment 5 QA Administrators 2022-12-10 03:22:25 UTC Comment hidden (obsolete)
Comment 6 Regina Henschel 2022-12-10 16:38:35 UTC
I see the difference still in Version: 7.5.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 17dfc9a9da009cc23d2222e3fb4e2cef9c97d581
CPU threads: 8; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: de-DE (en_US); UI: en-US
Calc: CL threaded