MpAndroidChart Piechart legends cutting issue at the bottom center

前端 未结 4 1911
名媛妹妹
名媛妹妹 2021-01-20 13:21

I have attached the screenshot of my usage chart. In red box display the legends and they are cutting in pie chart. Below is my code:

4条回答
  •  [愿得一人]
    2021-01-20 13:48

    Most probably there is an issue with the chart offsets. Try this, should solve your problem

    pieChart.setExtraOffsets(0, 0, 0, 25);
    

    This function sets extra offsets (around the chart view) to be appended to the auto-calculated offsets. The arguments are (left, top, right, bottom). Play around with the values to see which offsets suits your needs.

提交回复
热议问题