[Solved] Thicker lines in chart legend

Discuss the spreadsheet application
Post Reply
Kees1
Posts: 17
Joined: Mon Dec 05, 2011 11:36 pm

[Solved] Thicker lines in chart legend

Post by Kees1 »

How can I make thicker colored lines (LEGENDKEY) in the column section (LEGEND) on the right side of a graph?
Last edited by MrProgrammer on Mon Apr 27, 2026 4:19 pm, edited 2 times in total.
Reason: Tagged ✓ [Solved]; Solution available in LibreOffice; Not currently possible in OpenOffice
Open Office 4.1.7
Windows 10 64-bits
User avatar
Hagar Delest
Moderator
Posts: 33629
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

Re: Thicker lines in Column section of graph

Post by Hagar Delest »

Can you upload a sample file?

Something like that?
Legend.png
Legend.png (27.29 KiB) Viewed 326 times

Please add [Solved] at the beginning of the title in your first post (top of the topic) with the button if your issue has been fixed.
LibreOffice 25.2 on Linux Mint Debian Edition (LMDE 7 Gigi) and 25.2 portable on Windows 11.
Kees1
Posts: 17
Joined: Mon Dec 05, 2011 11:36 pm

Re: Thicker lines in Column section of graph

Post by Kees1 »

When you have selected the legend (as in your example), you then can select the border tab to add a border. That is not what I want to add. I want to make the colored lines within the area thicker. If you have for example a lot of curves in one graph, then the colored lines in the legend box are rather thin and then it is difficult to determine which curve corresponds to which item in the legend box.
Meanwhile I have found out that when you manipulate with the linewidth of a curve in the graph then the line width in the legend also is changing a bit. And I conclude there is no possibility to change the width of the colored lines in the legend box.
Open Office 4.1.7
Windows 10 64-bits
User avatar
Lupp
Volunteer
Posts: 3756
Joined: Sat May 31, 2014 7:05 pm
Location: München, Germany

Re: Thicker lines in Column section of graph

Post by Lupp »

For me (LibO 25.8.4.2) formatting the line of the series in the chart to a greater width is also applied to the example line in the legend. There is no way to format these lines differently. In AOO 4.16 I couldn't find a way to format the legend line at all.
aoo_113438_format_chart_legend.ods
(30.53 KiB) Downloaded 8 times
A line (X-Y) chart formatted with thicker line in the legend can be loaded with AOO 4.16, but the mentioned formatting is ignored then for the legend then.
On Windows 10: LibreOffice 25.8.4 and older versions, PortableOpenOffice 4.1.7 and older, StarOffice 5.2
---
Lupp from München
cwolan
Posts: 214
Joined: Sun Feb 07, 2021 3:44 pm

Re: Thicker lines in Column section of graph

Post by cwolan »

Lupp wrote: Sun Apr 19, 2026 11:00 pm For me (LibO 25.8.4.2) formatting the line of the series in the chart to a greater width is also applied to the example line in the legend.
Thanks to fixed Bug 31551 ("Lines in legend not shown with current width").
In the commit (titled "Show actual line width in the legend"), one reads: limit the line width from above by legend entry height (which +- matches the font height).

Lupp wrote: Sun Apr 19, 2026 11:00 pm In AOO 4.16 I couldn't find a way to format the legend line at all.
Kees1 wrote: Sun Apr 19, 2026 7:09 pm Meanwhile I have found out that when you manipulate with the linewidth of a curve in the graph then the line width in the legend also is changing a bit.
Comment No. 1 to Issue 117874 ("calc 3.3 diagram: changing line size has no effect on legend line size") :
The spec (see URL) has no specification for the line height of the legend key of a line.
In OOo3.4 the height follows the line height up to 0.05cm, which is the upper limit. In
OOo2.4.3 the legend key line has the same height as the graph line, even when it was
larger than the font height, so that the keys could overlap.
OpenOffice 1.1.5 – 4.1.16
LibreOffice 3.3.0.4 – 26.2
Windows 7,10,11 64-bit
Kees1
Posts: 17
Joined: Mon Dec 05, 2011 11:36 pm

Re: [Solved] Thicker lines in chart legend

Post by Kees1 »

For me (LibO 25.8.4.2) formatting the line of the series in the chart to a greater width is also applied to the example line in the legend. There is no way to format these lines differently.
Excuse me Lub that I respond so late. Many thanks for helping me figure it out.
Open Office 4.1.7
Windows 10 64-bits
Post Reply