Bug 159422

Summary: FILEOPEN XLSX Data table legend markers are not shifted by long title
Product: LibreOffice Reporter: Gabor Kelemen (allotropia) <kelemeng>
Component: ChartAssignee: Balázs Varga (allotropia) <balazs.varga991>
Status: RESOLVED FIXED    
Severity: normal CC: mhillat, xiscofauli
Priority: medium    
Version: 6.1 all versions   
Hardware: All   
OS: All   
See Also: https://bugs.documentfoundation.org/show_bug.cgi?id=159449
https://bugs.documentfoundation.org/show_bug.cgi?id=159451
Whiteboard: target:24.8.0
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 75057    
Attachments: Example file from Excel 2016
Screenshot of the example file in Excel 2016 and Calc

Description Gabor Kelemen (allotropia) 2024-01-29 08:48:02 UTC
Attached example file contains a data table with one very long, multiple line data series name. This long text shifts the data table downwards, but the legend markers positioning does not take this into account.

1. Open attached file
-> the colored legend markers are above their text

Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: d49b0c3654e50ff9b74545140e6f19e008009c33
CPU threads: 15; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: hu-HU (hu_HU); UI: en-US
Calc: threaded

This started in 7.5 when data table rendering was first implemented.
Comment 1 Gabor Kelemen (allotropia) 2024-01-29 08:48:26 UTC
Created attachment 192230 [details]
Example file from Excel 2016
Comment 2 Gabor Kelemen (allotropia) 2024-01-29 09:09:15 UTC
Created attachment 192231 [details]
Screenshot of the example file in Excel 2016 and Calc
Comment 3 Xisco Faulí 2024-01-30 10:06:21 UTC
Reproduced in

Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 966f075a332b38a2689dad317d5d3c3fa61a1efb
CPU threads: 8; OS: Linux 6.1; UI render: default; VCL: gtk3
Locale: es-ES (es_ES.UTF-8); UI: en-US
Calc: threaded
Comment 4 Commit Notification 2024-03-08 08:41:24 UTC
Balazs Varga committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/f4ba83e82aafc206d17d2fa66a27573ebc5a3624

tdf#159422 - chart view: fix symbols position of data table legend

It will be available in 24.8.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.