Bug 138702 - FILESAVE XLSX Changes to Plot Options not being saved
Summary: FILESAVE XLSX Changes to Plot Options not being saved
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
6.3.0.4 release
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, filter:xlsx, regression
Depends on:
Blocks: OOXML-Chart
  Show dependency treegraph
 
Reported: 2020-12-06 23:15 UTC by Malcolm McFee
Modified: 2023-11-01 12:25 UTC (History)
9 users (show)

See Also:
Crash report or crash signature:


Attachments
Example .ods sheet which loses plot options if saved as .xlsx (27.56 KB, application/vnd.oasis.opendocument.spreadsheet)
2020-12-07 15:05 UTC, Malcolm McFee
Details
printscreen of Plot options (95.88 KB, image/png)
2020-12-12 07:47 UTC, raal
Details
Original file exported to xlsx with 6.2 seen in Excel an current Calc (178.44 KB, image/png)
2021-09-07 11:00 UTC, NISZ LibreOffice Team
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Malcolm McFee 2020-12-06 23:15:15 UTC
Graph > Data Series > Format Data Series > Plot Options > Change "Assume Zero" to "Leave Gap"  NOW SAVE.

Close Spreadsheet then ReOpen Plot Options has NOT been saved as the option is "Assume Zero".
Comment 1 m_a_riosv 2020-12-06 23:53:53 UTC
Please report what file format do you use to save and copy the information in Menu/Help/About LibreOffice
Comment 2 Malcolm McFee 2020-12-07 00:12:38 UTC
This is saving the file as .xlsx
Hope this helps.
Comment 3 QA Administrators 2020-12-07 04:14:28 UTC Comment hidden (obsolete)
Comment 4 Malcolm McFee 2020-12-07 06:58:24 UTC
I have just try saving the file as .ods and closing and reopening retains the selected 'Plot Options' and works perfectly.

Also saving as .xls works perfectly (as above) so it is only the .xlsx that has the problem.
Comment 5 NISZ LibreOffice Team 2020-12-07 11:29:34 UTC
Could you please attach an ods file that exhibits this problem upon saving to XLSX?
Comment 6 Malcolm McFee 2020-12-07 15:05:58 UTC
Created attachment 167904 [details]
Example .ods sheet which loses plot options if saved as .xlsx

Attached Spreadsheet as requested.
Comment 7 zcrhonek 2020-12-07 19:26:33 UTC
I can confirm with Version: 7.2.0.0.alpha0+
Build ID: 7673b027daed248d1be4dd1a773bfc0334a00c53
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3
Locale: cs-CZ (cs_CZ.UTF-8); UI: en-US
Calc: threaded

Works in Version: 6.1.0.0.alpha1+
Comment 8 Xisco Faulí 2020-12-11 16:02:37 UTC
(In reply to Malcolm McFee from comment #0)
> Graph > Data Series > Format Data Series > Plot Options > Change "Assume
> Zero" to "Leave Gap"  NOW SAVE.

I'm sorry but I can't find the options 'Plot Options', not 'Assume Zero' nor 'Leave Gap'
@zcrhonek could you please explain the correct steps to reproduce it ?
Comment 9 raal 2020-12-12 07:47:16 UTC
Created attachment 168088 [details]
printscreen of Plot options

open plot option (Data series options) see attached printscreen
change to Assume zero
save as xlsx, reload
open plot option, change to Leave Gap
save xlsx ,reload
open plot option > Assume zero, should be Leave gap
Comment 10 Buovjaga 2021-08-28 13:31:23 UTC
Bibisected with linux-64-6.3 to
https://git.libreoffice.org/core/commit/f684c074d5f66c8b1546a626766bc045c04cebc3
tdf#115012 XLSX chart import: workaround for no gap

Adding Cc: to László Németh
Comment 11 NISZ LibreOffice Team 2021-09-07 11:00:17 UTC
Created attachment 174853 [details]
Original file exported to xlsx with 6.2 seen in Excel an current Calc

In:
Version: 7.3.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: c7b5e6566d9b24a0a996c739a945004d9aadee2f
CPU threads: 4; OS: Windows 10.0 Build 18363; UI render: default; VCL: win
Locale: hu-HU (hu_HU); UI: en-US
Calc: CL

The display of the exported xlsx is the same as in Excel ("Közökkel" in this shot means "Leave gap"). The export of this c:dispBlanksAs val="gap"/> setting was correct even in 5.0.

What is different the understanding of "Empty cells" by Excel and "missing values" by Calc.

In this file these plotted cells are the result of a formula calculation in the B3:L27 range:
=IF($Weight.B3="";"";($Weight.B3-$Weight.B$2)/$Weight.B$2)

Calc considers these cells "empty" when the IF formula gives the empty string and plots them as gaps.
Excel however does NOT consider them empty and plots them "with zero values" even if you have selected "with gaps" on it's UI.
If you delete the formulae from the seemingly empty cells, then it really does not plot anything, just like Calc.

The bibisected commit solved the visual difference by detecting whether there are "not really empty" calculated cells and changed the plotting option from "Leave gap" to "Assume zero", so when Excel cheats, Calc cheats as well.

The downside of cheating is this bug: Leave gap option is not usable anymore when you load XLSX format.
Comment 12 Stéphane Guillou (stragu) 2022-11-18 09:06:11 UTC
Reproduced with attachment 167904 [details] and:

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

Save as XLSX and reload results in lines extending at 0% all the way to the right of the plot.