androidlabelmpandroidchart

MPAndroidChart - Legend labels are being cut off


I am using MPAndroidChart library. Anybody has this problem? When I put the labels in BOTTOM position, these are cut.

Thank you

enter image description here


Solution

  • They are cut because your text is too long and the library does not support "wrapping" of the labels to a new line.

    You will either have to shorten your legend labels or implement the desired functionality yourself.

    UPDATE:

    Word wrapping for the Legend is now supported.

    chart.getLegend().setWordWrapEnabled(true);