In QGIS 2.18 there is an option to wrap text based on a certain character. What I need is to automatically wrap my text on the ' ' (space) character IF the character length exceeds the size of my legend box. Question is: how do I get an expression builder in the supplied warp box?
There is no way to wrap a text in the legend based on the number of characters. As you can see in wrap text in the legend, it does not support expressions. There is no expression button beside the
Wrap text in legend to use . If you want to wrap the text based on space, just hit the
space on you keyboard and it will be wrapped:
Before pressing the space: