0

Hi i am new for android and present i am using MPAndroidChart for showing Piechart,By default there are showing some color pickers with some text below of my pie-chart as like my below screen

My screen looks like below after developed the App,But my problem is i don't want to show that color picker's with text below of that pie-chart,

I shared my screen please help me how can i remove them

enter image description here

Krish
  • 4,166
  • 11
  • 58
  • 110
  • 3
    Possible duplicate of [Remove description from Pie Chart](http://stackoverflow.com/questions/27566916/remove-description-from-pie-chart) – Zoe Apr 12 '17 at 13:40
  • Disable legends its done mChart.getLegend().setEnabled(false); – Madhur May 03 '17 at 07:34

1 Answers1

0

Try using in Kotlin

 chart.description.isEnabled = false
 chart.legend.isEnabled = false

or in Java

 chart.getFescription.setEnabled(false)
 chart.getLegend.setEnabled(false)