Change length of lines in line graph legend?

I’m creating line graphs in LibreOffice Calc that I need to paste into a text document, which due to margin constraints must be no wider than 15cm. Because I have a lot of labels on my X-axis, my chart wall must be at least 11cm, and so my legend has to fit in about 3cm of space on the right. However, Calc automatically generates the legend to have ridiculously long lines. Can I change their length?

(Edit: activated screenshot -AK)