MPAndroidChart - Legend labels are being cut off

后端 未结 9 1353
自闭症患者
自闭症患者 2020-12-15 17:18

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

Thank you

9条回答
  •  伪装坚强ぢ
    2020-12-15 18:02

     Legend l = pieChart.getLegend();
     l.setPosition(LegendPosition.BELOW_CHART_LEFT);
     l.setXEntrySpace(7f);
     l.setYEntrySpace(0f);
     l.setYOffset(0f);
     l.setDirection(LegendDirection.LEFT_TO_RIGHT);
     l.setWordWrapEnabled(true);
    

提交回复
热议问题