I always struggle when showing line chart with long legend title like this:

enter image description here

Is there any best practice to a chart with long legend title?

I try to show several alternatives below, but of course, it's not comprehensive.

(a) Stretch y-axis limit

enter image description here

(b) Put legend outside chart's body

enter image description here

(c) Shorten legend title

enter image description here


I'm a researcher in computer science field. But, general discussions beyond research domains are also welcome.

  • 2
    Note that specific journals may have their own styling preferences for the legend. – Bitwise Mar 24 '16 at 2:44
  • @Bitwise Thanks. I'm interested especially in CS field. Unfortunately, I have no idea about style preference about this topic even in my field, and would appreciate if you could give some ideas. – Light Yagmi Mar 24 '16 at 2:51

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.