Bug 132076 - Calc Chart X-axis format lost with xlsx
Summary: Calc Chart X-axis format lost with xlsx
Status: VERIFIED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Chart (show other bugs)
Version:
(earliest affected)
5.2 all versions
Hardware: All All
: medium normal
Assignee: Balázs Varga
URL:
Whiteboard: target:7.0.0
Keywords:
Depends on:
Blocks: OOXML-Chart
  Show dependency treegraph
 
Reported: 2020-04-12 22:42 UTC by flywire
Modified: 2020-04-28 15:10 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
Calc Chart X-axis format lost with xlsx Test File (15.76 KB, application/vnd.oasis.opendocument.spreadsheet)
2020-04-14 04:46 UTC, flywire
Details
Screenshot of the exported file side by side in Calc master and Excel (120.88 KB, image/png)
2020-04-14 09:42 UTC, NISZ LibreOffice Team
Details

Note You need to log in before you can comment on or make changes to this bug.
Description flywire 2020-04-12 22:42:52 UTC
Description:
Format column chart date format to dd, save file as .xlsx and reopen. X-axis format is source format.

Steps to Reproduce:
1.Using Date and Data columns
2.Insert column chart
3.Format x-axis, Numbers, clear Source format and use format code dd
4. Save as TestChart.xlsx
5. Reopen TestChart.xlsx and Source format is reselected

Actual Results:
Custom Format code is lost

Expected Results:
x-axis format with custom format code


Reproducible: Always


User Profile Reset: Yes


OpenGL enabled: Yes

Additional Info:
Issue does not occur with ods format
Comment 1 m_a_riosv 2020-04-13 17:36:45 UTC
Please attach sampel ods file where to reproduce the issue when saving as xlsx.
Comment 2 flywire 2020-04-14 04:46:04 UTC
Created attachment 159545 [details]
Calc Chart X-axis format lost with xlsx Test File

Save the file as ods and xlsx. Reopen both files - Custom date Format code is lost in the xlsx file.
Comment 3 Gabor Kelemen (allotropia) 2020-04-14 06:45:02 UTC
Confirmed with test file on: 

Version: 7.0.0.0.alpha0+
Build ID: 95dbfd517240666e5b9a9fd7ac1d47d799235a62
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3; 
Locale: hu-HU (hu_HU.UTF-8); UI-Language: en-US
Calc: threaded
Comment 4 NISZ LibreOffice Team 2020-04-14 09:42:36 UTC
Created attachment 159551 [details]
Screenshot of the exported file side by side in Calc master and Excel

Turns out this is an import problem, since the date format appears correctly in Excel.

Version: 7.0.0.0.alpha0+ (x64)
Build ID: bc898e2c2784e36ad4d4cdf6d962e39069d2c82d
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: default; VCL: win; 
Locale: hu-HU (hu_HU); UI-Language: en-US
Calc: CL

Also the saved file exported by versions back to 5.0 also appears correctly in Excel, but not in Calc.
Comment 5 Commit Notification 2020-04-24 13:29:25 UTC
Balazs Varga committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/75156c6fd73dc202df541306e1636727d51d6fc3

tdf#132076 Chart OOXML: fix lost date format of X axis

It will be available in 7.0.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 6 Xisco Faulí 2020-04-28 15:09:32 UTC
Verified in

Version: 7.0.0.0.alpha0+
Build ID: 4ba1909f12b49f020195b5e767045340717ce6df
CPU threads: 4; OS: Linux 4.19; UI render: default; VCL: gtk3; 
Locale: en-US (en_US.UTF-8); UI-Language: en-US
Calc: threaded

@Balázs Varga, thanks for fixing this issue!!
Comment 7 Xisco Faulí 2020-04-28 15:10:05 UTC
Doesn't seems to be a recent problem. Also reproduced in

Version: 5.2.0.0.alpha0+
Build ID: 3ca42d8d51174010d5e8a32b96e9b4c0b3730a53
Threads 4; Ver: 4.19; Render: default;