Bug 114274 - Scatter plot with all X values set to NA switch to line plot
Summary: Scatter plot with all X values set to NA switch to line plot
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Chart (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Chart-Labels
  Show dependency treegraph
 
Reported: 2017-12-06 09:43 UTC by killerrex
Modified: 2023-08-02 03:13 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Working Excel version (13.71 KB, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet)
2018-07-11 16:15 UTC, killerrex
Details
Non working Calc workbook (16.88 KB, application/vnd.oasis.opendocument.spreadsheet)
2018-07-11 16:19 UTC, killerrex
Details
Example created with v7.1.5.2 (16.26 KB, application/vnd.oasis.opendocument.spreadsheet)
2021-08-01 21:17 UTC, killerrex
Details

Note You need to log in before you can comment on or make changes to this bug.
Description killerrex 2017-12-06 09:43:36 UTC
Description:
I have sheet with a column than can change to #N/A to remove lines from certain plots.

In an scatter plot if that column is the Y values the line disappears as expected, but if it is the X values, the plot change to a line plot (like the X coordinates are 1, 2, 3...)
Notice that if the X values are empty this is not happening.

In Excel 2010 and newer this behavior is not happening: In a scatter plot a line with all the X values set to #N/A is not plotted.


Steps to Reproduce:
1. Create a scatter plot with the Y set to valid values.
2. Set all the X to NA()


Actual Results:  
The line is then plotted as the X values are 1, 2, 3...

Expected Results:
The line is not plotted


Reproducible: Always


User Profile Reset: Yes


OpenGL enabled: Yes

Additional Info:
The expected result is the Excel behaviour.

Version: 5.4.3.2 (x64)
Build ID: 92a7159f7e4af62137622921e809f8546db437e5
CPU threads: 4; OS: Windows 6.1; UI render: default; 
Locale: en-GB (en_GB); Calc: CL


User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36
Comment 1 Buovjaga 2017-12-16 17:37:07 UTC
(In reply to killerrex from comment #0)
> Steps to Reproduce:
> 1. Create a scatter plot with the Y set to valid values.
> 2. Set all the X to NA()

Please attach an example document.

Set to NEEDINFO.
Change back to UNCONFIRMED after you have provided the document.
Comment 2 QA Administrators 2018-07-03 14:16:17 UTC Comment hidden (obsolete)
Comment 3 killerrex 2018-07-11 16:15:40 UTC
Created attachment 143478 [details]
Working Excel version

Excel sheet that works as expected.
Setting the cell C2 a value:
+ -10 or lower the plot is empty
+ +10 or bigger the plot is an horizontal parabola
+ For intermediate values only part of the parabola is shown.
Comment 4 killerrex 2018-07-11 16:19:29 UTC
Created attachment 143481 [details]
Non working Calc workbook

Libreoffice version that does not work as expected.
Setting the cell C2 a value:
+ -10 or lower the plot is *NOT* empty as expected, but the values of Y are plot.
+ +10 or bigger the plot is an horizontal parabola
+ For intermediate values only part of the parabola is shown.

The bad behaviour happens both in Windows 7 with Libreoffice 6.0.5 and Linux Opensuse Tumbleweed and Libreoffice Versión: 6.1.0.0.beta2+ Compilation 10(Build:0)
Comment 5 killerrex 2018-07-11 16:24:38 UTC
I added 2 versions of the same simple Excel sheet that reproduce the bug.

In both cases playing with the cell C2 is possible to see the bug:
- For values over -9 the X values is mix between N/A and numbers, so the horizontal parabola is plot (or part of it)
- For values of -10 or lower, all the X values are N/A. In Excel the line disappears (the plot is empty). In Libreoffice the plot changes to "Line mode" and plots the Y values in function of the index.
Comment 6 Buovjaga 2018-07-11 17:53:31 UTC
Ok, looks like it behaves the same way in 3.3.0

Arch Linux 64-bit
Version: 6.2.0.0.alpha0+
Build ID: bd394492c165d27c96a44495d9ca694a242acb8f
CPU threads: 8; OS: Linux 4.17; UI render: default; VCL: gtk3; 
Locale: fi-FI (fi_FI.UTF-8); Calc: group threaded
Built on July 11th 2018

Arch Linux 64-bit
LibreOffice 3.3.0 
OOO330m19 (Build:6)
tag libreoffice-3.3.0.4
Comment 7 QA Administrators 2019-08-01 03:36:03 UTC Comment hidden (obsolete)
Comment 8 QA Administrators 2021-08-01 03:53:33 UTC Comment hidden (obsolete)
Comment 9 killerrex 2021-08-01 21:17:23 UTC
Created attachment 174018 [details]
Example created with v7.1.5.2

I confirm is still present in linux latest Libreoffice stable version:

Version: 7.1.5.2 / LibreOffice Community
Build ID: 10(Build:2)
CPU threads: 8; OS: Linux 5.13; UI render: default; VCL: gtk3
Locale: es-ES (es_ES.utf8); UI: es-ES
Gentoo official package
Calc: threaded

I add a new example, created with this version of LibreOffice.
Comment 10 QA Administrators 2023-08-02 03:13:41 UTC
Dear killerrex,

To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year.

There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present.

If you have time, please do the following:

Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/

If the bug is present, please leave a comment that includes the information from Help - About LibreOffice.
 
If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice.

Please DO NOT

Update the version field
Reply via email (please reply directly on the bug tracker)
Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not 
appropriate in this case)


If you want to do more to help you can test to see if your issue is a REGRESSION. To do so:
1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/

2. Test your bug
3. Leave a comment with your results.
4a. If the bug was present with 3.3 - set version to 'inherited from OOo';
4b. If the bug was not present in 3.3 - add 'regression' to keyword


Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa

Thank you for helping us make LibreOffice even better for everyone!

Warm Regards,
QA Team

MassPing-UntouchedBug