I want to wrap legend text after a certain amount of characters depending on the width (variable) of the legend item.
I already tried the answer given at Wrapping legend text in QGIS MapComposer at character count. This solution is not working well for me. Is there a way to apply a expression to all layers ?
I want to have a automatic legend text for my atlas composition without having to manually wrap text legend.
Exemple 1 of atlas page
Exemple 2 of atlas page
Legend text of all layers
When using the expression wordwrap it seems to work at first but then QGIS goes suddenly very slow. The text legend seems to be constantly loading beetween wrapped and unwrapped mode.
Picture of wrapped text with the expression
Picture of unwrapped text with the same expression, one second later