How best to format and position legend in line chart when legend text is long?
When it's not too big, I recommend shrinking the legend font size and whitespace and reducing the complexity of the labels.  If it's very big, however, I recommend instead moving to a systematic coloring scheme and explaining the coloring scheme in the caption rather than a legend.