How to remove description from chart in MPAndroidChart?

前端 未结 4 1864
夕颜
夕颜 2020-12-15 02:40

I am using MPAndroidChart.

How can I remove the description from PieChart? I can remove the Legend with chart.setDrawLegend(false)

4条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-15 03:11

    In the new version you can do it like this:

    Description des = Chart.getDescription();
    des.setEnabled(false);
    

    If you want to remove the legend:

    Legend leg = Chart.getLegend();
    leg.setEnabled(false);
    

提交回复
热议问题