Bug 108021

Summary: Text break is not supported for column chart X axis if text is rotated
Product: LibreOffice Reporter: Gabor Kelemen (allotropia) <kelemeng>
Component: ChartAssignee: Balázs Varga <varga.balazs3>
Status: RESOLVED FIXED    
Severity: enhancement CC: ilmari.lauhakangas, libreoffice, markus.mohrhard
Priority: medium    
Version: Inherited From OOo   
Hardware: All   
OS: All   
See Also: https://bugs.documentfoundation.org/show_bug.cgi?id=93030
https://bugs.documentfoundation.org/show_bug.cgi?id=122702
Whiteboard: target:6.3.0 target:6.2.1
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 90486    
Attachments: Example file showing the problem
Screenshot of the properties of the bottom chart

Description Gabor Kelemen (allotropia) 2017-05-23 09:49:23 UTC
Created attachment 133469 [details]
Example file showing the problem

Attached file contains two simple column charts made in LO 5.4alpha.

Both contain very long data row names and the Break property is set on the X Axis windows Label tab.

The row labels of the upper chart break, but not the ones of the bottom one, as they are not horizontally aligned, but vertically.

Excel on the other hand can break row names even in rotated labels, so it would be nice if LO could do that as well.
Comment 1 Gabor Kelemen (allotropia) 2017-05-23 09:50:58 UTC
Created attachment 133470 [details]
Screenshot of the properties of the bottom chart

Break is enabled, yet the text is not broken to multiple rows.
Comment 2 Buovjaga 2017-06-04 12:16:43 UTC
Yep.

Arch Linux 64-bit, KDE Plasma 5
Version: 5.5.0.0.alpha0+
Build ID: c855400e9686ddd8bcba5691393f839f6f52c966
CPU threads: 8; OS: Linux 4.11; UI render: default; VCL: kde4; 
Locale: fi-FI (fi_FI.UTF-8); Calc: group
Built on June 2nd 2017
Comment 3 Markus Mohrhard 2018-11-18 21:13:48 UTC
@Gabor: If you have created that file yourself, can we use this under the MPL in an automated test?
Comment 4 Gabor Kelemen (allotropia) 2018-11-19 06:25:18 UTC
(In reply to Markus Mohrhard from comment #3)
> @Gabor: If you have created that file yourself, can we use this under the
> MPL in an automated test?

Yes, of course you can use it.
Thanks in advance if you do :).
Comment 5 Commit Notification 2018-12-18 10:05:48 UTC
Balazs Varga committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/+/f8d6de19181d749d7c2b345ce7084c0c07fa3eab%5E%21

tdf#108021 Chart: Fix text break of column chart X axis

It will be available in 6.3.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.
Comment 6 Commit Notification 2019-01-22 14:36:29 UTC
Balazs Varga committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/+/40ffaa4f23fe59f979222facf1688d25c60651b6%5E%21

Related: tdf#108021 Fix text break of X axis labels

It will be available in 6.3.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.
Comment 7 Commit Notification 2019-02-08 14:44:43 UTC
Balazs Varga committed a patch related to this issue.
It has been pushed to "libreoffice-6-2":

https://git.libreoffice.org/core/+/415dbafb2dcc5b9b897b5febaed66fc9431a6857%5E%21

tdf#108021 Chart: Fix text break of column chart X axis

It will be available in 6.2.1.

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.