the solution Uwe suggested is not about particular text as well. Suppose you set your curve a title. That title is what you want to appear in the legend. In updateLegend function, title() gives that title you have set. Now suppose you want only 10 chars max in your title...then take out the first 4 chars of string, append with '...' then take out the last four chars of string and append, etc...
Bookmarks