Bug 85493 - VIEWING: In Line charts with dates as X axis, point tooltips are wrong when "Categories" values are not sorted in ascending order
Summary: VIEWING: In Line charts with dates as X axis, point tooltips are wrong when "...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
3.4.0 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
: 101509 (view as bug list)
Depends on:
Blocks: Chart
  Show dependency treegraph
 
Reported: 2014-10-26 21:17 UTC by Olivier DESCOUT
Modified: 2024-09-20 21:22 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
A calc sheet reproducing the issue (57.94 KB, application/vnd.oasis.opendocument.spreadsheet)
2014-10-26 21:17 UTC, Olivier DESCOUT
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Olivier DESCOUT 2014-10-26 21:17:32 UTC
Created attachment 108476 [details]
A calc sheet reproducing the issue

Problem description: 
When you make Calc generate a diagram of type "Line" from 2 data sets (one for the X axis, the other for the Y axis), Calc sorts the dataset values, based on X-axis values (ascending order), before displaying them in the diagram. For example, if the X-axis values are dates, these dates are sorted so that the diagram shows value in chronological order.
This is a nice feature, incidentally.

However, when you double-click on the diagram and let the mouse on one of the curve points, a tip shows up, but this tip gives wrong information if the X-axis values in the source range needed sorting before being displayed the diagram (actually, information given is not erratic, it just relates to the wrong cell in the source cell range).

How to reproduce the issue:
- Open the attached Calc document. It contains 4 sheets with the very same data, sorted in a different way each; every sheet also contains a diagram of type "Line" showing up these data graphically. Note that all 4 diagrams are strictly identical, since data are identical (though they are sorted with different criteria every time).
- Select any of the "... -- KO" sheet.
- Double-click on the diagram.
- Let the mouse over any point of the curve, et look at the tip info.

Every sheet in the attached Calc document also gives 3 examples of points, with their expected and actual tip texts.

Expected result:
The tip over any point in the diagram should take into account the fact that values were sorted when generating the diagram. Which means that the 1st point on the left in the diagram may not be the value of the 1st cell in the source cell range; the 11th point from the left in the diagram may not be the value of the 11th cell in the source cell range; and the last point on the right in the diagram may not be the value of the last cell in the source cell range.

Note: As a reference, I also added a sheet in the attached spreadsheet, named "Ascending Date -- OK", which shows that point tips are OK when the data are already sorted in ascending order in the source cell range.
Comment 1 Jean-Baptiste Faure 2014-11-11 15:52:34 UTC
The type "Line" does not use first column as abscissa, it uses it as labels. You can check that if you open the dialog Data Range. You will see that for your chart you do not have a data range for X values, only for Y values. In fact the X values are given by the line numbers.

If you want a chart with 2 data ranges, one for the X values and one for the Y values, you must use the type XY.

Best regards. JBF
Comment 2 Olivier DESCOUT 2014-11-11 21:43:27 UTC
@ Jean-Baptiste Faure

I agree with your note. However, if you look at the attached spreadsheet, you will see that tip information over the points in the curve does not match these points.

That's the point of this issue: no matter the type of diagram, the tip over a given point should give information on this particular point, and not on a different point located somewhere else in the curve.
Comment 3 Jean-Baptiste Faure 2014-11-11 21:47:19 UTC
I disagree, you give to the labels a meaning that is not intended by Chart. The first label is only the first label, whatever is written on the label.

Best regards. JBF
Comment 4 Olivier DESCOUT 2014-11-11 22:07:30 UTC
Sorry, but what is the purpose of displaying a pop-up tip when the mouse goes over a particular point of the curve if the shown tip gives information, not on that point, but on a point, which is completely different and located somewhere else? If I may say so, I'd say it makes the tip... simply pointless.
Comment 5 seb 2015-10-01 16:12:21 UTC
I can reproduce this in LO 5.0.1 (on Arch Linux).

The issue appears even when using an XY (scatter) chart type, as JBF suggested using instead.

It seems as if on rendering the chart, the X-Y values are laid out on the chart in some unspecified order, while the line will simply connect the points from leftmost to rightmost, discarding the order in the data series. When the mouse hovers on a point, the label it references is then relative to the first point in the line, instead of being the actual index in the data series of the point.

I would also expect the tooltip to refer to the correct point, as per the original reporter said.
Comment 6 Olivier DESCOUT 2016-02-11 21:32:12 UTC
I can reproduce this in LO 5.1.0.3 (on Windows 6.1).
Comment 7 Olivier DESCOUT 2016-09-10 07:14:15 UTC
I can also reproduce this in LO 5.2.1.2 (on Windows 6.1).
Comment 8 Olivier DESCOUT 2017-02-12 17:34:20 UTC
I can also reproduce this in LO 5.3.0.3 (on Windows 6.1).
Comment 9 Olivier DESCOUT 2017-09-01 18:23:47 UTC
I can also reproduce this in LO 5.4.1.2_x64 (on Windows 6.19).
Comment 10 Olivier DESCOUT 2018-02-04 23:18:49 UTC
I can still reproduce this in LO 6.0.0.3_x64 (on Windows 10.0).
Comment 11 QA Administrators 2019-02-05 03:46:10 UTC Comment hidden (obsolete)
Comment 12 Olivier DESCOUT 2019-02-09 09:56:54 UTC
I can still reproduce this in LO 6.2.0.3_x64 and various LO 6.1.x (_x64) versions (on Windows 10.0).
Comment 13 Olivier DESCOUT 2019-02-09 10:03:25 UTC
Amendment to my previous comment: below are some additional information on the LO 6.2.0 version, against which I tested the bug again:
Version: 6.2.0.3 (x64)
Build ID: 98c6a8a1c6c7b144ce3cc729e34964b47ce25d62
Threads CPU : 4; OS : Windows 10.0; UI Render : default; VCL: win; 
Locale : fr-FR (fr_FR); Langue IHM : fr-FR
Calc: threaded
Comment 14 Olivier DESCOUT 2019-08-18 22:52:03 UTC
I can still reproduce this with LO 6.3.

Please find below detailed LO version information:
Version: 6.3.0.4 (x64)
Build ID: 057fc023c990d676a43019934386b85b21a9ee99
Threads CPU : 4; OS : Windows 10.0; UI Render : par défaut; VCL: win; 
Locale : fr-FR (fr_FR); Langue IHM : fr-FR
Calc: threaded
Comment 15 Olivier DESCOUT 2020-03-01 17:07:07 UTC
I can still reproduce this with LibreOffice 6.4.

Please find below detailed LO version information:

Version : 6.4.1.2 (x64)
Build ID : 4d224e95b98b138af42a64d84056446d09082932
Threads CPU : 4; OS : Windows 10.0 Build 18363; UI Render : par défaut; VCL: win; 
Locale : fr-FR (fr_FR); Langue IHM : fr-FR
Calc: threaded
Comment 16 Olivier DESCOUT 2020-10-04 17:41:47 UTC
I can still reproduce this with LibreOffice 7.0.

Please find below detailed LO version information:

Version: 7.0.1.2 (x64)
Build ID: 7cbcfc562f6eb6708b5ff7d7397325de9e764452
CPU threads: 4; OS: Windows 10.0 Build 19041; UI render: Skia/Vulkan; VCL: win
Locale: fr-FR (fr_FR); Langue IHM : fr-FR
Calc: threaded
Comment 17 Olivier DESCOUT 2021-03-05 20:38:16 UTC
I can still reproduce this with LibreOffice 7.1.

Please find below detailed LO version information:

Version: 7.1.0.3 (x64) / LibreOffice Community
Build ID: f6099ecf3d29644b5008cc8f48f42f4a40986e4c
CPU threads: 4; OS: Windows 10.0 Build 19041; UI render: Skia/Raster; VCL: win
Locale: fr-FR (fr_FR); UI: fr-FR
Calc: threaded
Comment 18 Olivier DESCOUT 2021-08-28 16:46:43 UTC
I can still reproduce this with LibreOffice 7.2.

The pop-up tip over any point of the graph still gives wrong data information, namely data information on a wrong point of the graph, as soon as X-axis-graph data are sorted in any order different from the ascending one.

Please find below detailed LO version information:

Version: 7.2.0.4 (x64) / LibreOffice Community
Build ID: 9a9c6381e3f7a62afc1329bd359cc48accb6435b
CPU threads: 4; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: fr-FR (fr_FR); UI: fr-FR
Calc: threaded
Comment 19 Olivier DESCOUT 2022-02-12 16:29:39 UTC
I can still reproduce this with LibreOffice 7.3.

The pop-up tip over any point of the graph still gives wrong data information, namely data information on a wrong point of the graph, as soon as X-axis-graph data are sorted in any order different from the ascending one.

Please find below detailed LO version information:

Version: 7.3.0.3 (x64) / LibreOffice Community
Build ID: 0f246aa12d0eee4a0f7adcefbf7c878fc2238db3
CPU threads: 4; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: fr-FR (fr_FR); UI: fr-FR
Calc: threaded
Comment 20 Olivier DESCOUT 2022-08-27 08:47:55 UTC
I can still reproduce this with LibreOffice 7.4.

The pop-up tip over any point of the graph still gives wrong data information, namely data information on a wrong point of the graph, as soon as X-axis-graph data are sorted in any order different from the ascending one.
The bug description includes a small Calc sheet, which reproduces the bug.

Please find below detailed LO version information:

Version: 7.4.0.3 (x64) / LibreOffice Community
Build ID: f85e47c08ddd19c015c0114a68350214f7066f5a
CPU threads: 4; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: fr-FR (fr_FR); UI: fr-FR
Calc: threaded
Comment 21 Olivier DESCOUT 2023-02-05 16:52:09 UTC
I can still reproduce this bug with LibreOffice 7.5 :

When the mouse is over a point of the graph, the data information given by the pop-up tip is wrong and does not relate to the right point in the graph, as soon as X-axis-graph data are sorted in any order different from the ascending one.

A small Calc sheet, which reproduces the bug, is attached to this bug description.

Please find below the detailed LO version information:

Version: 7.5.0.3 (X86_64) / LibreOffice Community
Build ID: c21113d003cd3efa8c53188764377a8272d9d6de
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: fr-FR (fr_FR); UI: fr-FR
Calc: threaded
Comment 22 Olivier DESCOUT 2023-09-02 08:16:56 UTC
I can still reproduce this bug with LibreOffice 7.6 :

When the mouse is over a point of the graph, the tooltip that pops up does not refer to this point but a point elsewhere in the graph, as soon as X-axis-graph data are not sorted in the ascending order. One would expect the tooltip to refer to the correct point.

A small Calc sheet, which reproduces the bug, is attached to this bug description.

Please find below the detailed LO version information:

Version: 7.6.0.3 (X86_64) / LibreOffice Community
Build ID: 69edd8b8ebc41d00b4de3915dc82f8f0fc3b6265
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: fr-FR (fr_FR); UI: fr-FR
Calc: threaded
Comment 23 Stéphane Guillou (stragu) 2023-10-05 09:44:31 UTC
Thank you Olivier for re-testing so consistently over the last... 9 years!!

I can also still reproduce the issue in a recent trunk build.

I think it has the same root cause as bug 37407, but because:
- your chart type here is "line" with a Date type for the X axis scale, whereas the other report focuses on X-Y scatterplots sorted by X
- and the axis scale type "Date" was not available in OOo 3.3, but started in 3.4
...I think we can keep them separate.

But please also follow that other report if you are interested.

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: f95c3994f0b6a82a3bc2ddfb68822b74479ae185
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded
Comment 24 Stéphane Guillou (stragu) 2023-10-05 13:29:52 UTC
*** Bug 101509 has been marked as a duplicate of this bug. ***
Comment 25 Olivier DESCOUT 2024-02-10 09:09:50 UTC
I can still reproduce this bug with LibreOffice 24.2.
Please find below the detailed LO version information:

Version: 24.2.0.3 (X86_64) / LibreOffice Community
Build ID: da48488a73ddd66ea24cf16bbc4f7b9c08e9bea1
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: fr-FR (fr_FR); UI: fr-FR
Calc: threaded
Comment 26 Olivier DESCOUT 2024-09-20 21:22:28 UTC
I can still reproduce this bug with LibreOffice 24.8.
Please find below the detailed LO version information:

Version: 24.8.1.2 (X86_64) / LibreOffice Community
Build ID: 87fa9aec1a63e70835390b81c40bb8993f1d4ff6
CPU threads: 4; OS: Windows 10 X86_64 (10.0 build 19045); UI render: Skia/Raster; VCL: win
Locale: fr-FR (fr_FR); UI: fr-FR
Calc: threaded