Bug 140555 - Mean disappears from charts after save as XLS/X when Linear is added to charts
Summary: Mean disappears from charts after save as XLS/X when Linear is added to charts
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Chart (show other bugs)
Version:
(earliest affected)
5.2.0.4 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:xls, filter:xlsx
Depends on:
Blocks: Chart-Trendlines
  Show dependency treegraph
 
Reported: 2021-02-20 13:33 UTC by Todd Crenshaw
Modified: 2022-06-13 12:42 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Test ODS (16.90 KB, application/vnd.oasis.opendocument.spreadsheet)
2022-06-13 12:32 UTC, Timur
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Todd Crenshaw 2021-02-20 13:33:40 UTC
Description:
When creating a line chart in LibreCalc I've added both a Linear and Mean lines. When saved and then re-opened the Mean line is gone.

Steps to Reproduce:
1. Open LibreOffice
2. Open LibreCalc
3. Enter in column 1A the word "Date"
4. Enter in column 1B the word "Value"
5. Enter in column 2A through 11A the following values, 01/01/21 through 01/10/21 - use drag from 1A if you wish for auto date create per cell.
6. Enter in column 2B through 11B the following values: 1, 2, 3, 4, 5, 3, 4, 5, 3, 1
7. Select (highlight) 1A through 11B
8. Select Chart from Insert menu
9. Right click on chart, select Edit
10. Click on any data column to select all data bars
11. Right click and select Insert Mean Value Line
12. Right click and select Insert Trend Line
13. Click OK for Trend to make Trend properties box close
14. Select File, Save As - save as .xlsx (note: I also saved as .OSD and when I tried to reload, LibreOffice kept crashing on the intro loading screen. I had to kill it using task manager. When re-loaded I had to open in safe mode, close and then open in normal mode. Then it brought up the .osd file and all appeared ok. I normally use .xlsx to maintain compatibility with MS Office users.)
15. Close LibreOffice
16. Open LibreOffice and open the file just saved or use the recent documents menu to open the file. 

The issue is able to be duplicated running in Safe Mode. It doesn't appear to be a corrupt profile issue. 

Actual Results:
The Linear line remains in the chart. The Mean line disappears. 

Expected Results:
For the Mean line to not disappear. 


Reproducible: Always


User Profile Reset: Yes


OpenGL enabled: Yes

Additional Info:
[Information automatically included from LibreOffice]
Locale: en-US
Module: SpreadsheetDocument
[Information guessed from browser]
OS: Windows (All)
OS is 64bit: no

Version: 7.1.0.3 (x64) / LibreOffice Community
Build ID: f6099ecf3d29644b5008cc8f48f42f4a40986e4c
CPU threads: 8; OS: Windows 10.0 Build 18363; UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL
Comment 1 Todd Crenshaw 2021-02-20 13:52:25 UTC
I have attempted this again saving as both .osd and .xlsx. The .osd worked this time and keeps both the Mean and Trend lines. I'm not sure why this worked this time for the .osd, but the save as .xlsx still removed the Mean line.
Comment 2 Buovjaga 2022-03-07 08:18:23 UTC
Please attach an example document (ODS).
Set to NEEDINFO.
Change back to UNCONFIRMED after you have provided the document.
Comment 3 Timur 2022-06-13 11:50:03 UTC Comment hidden (obsolete)
Comment 4 Timur 2022-06-13 12:32:33 UTC
Created attachment 180725 [details]
Test ODS

Save and reopen OK in daily 7.4+. NOK if saved as XLS or XLSX.
On reopen in MSO in addition to not showing mean, there's a repair before for XLSX only.
Comment 5 Timur 2022-06-13 12:42:18 UTC
Repro at least from 5.2. Previously both lines were lost, tested with LO 4.2.