I am using MPAndroidChart library and I want to remove the values in in the top right corner of the PieChart
, how can I do this ?
use legend. setEnabled(false) instead.
By default, all chart types support legends and will automatically generate and draw a legend after setting data for the chart. The Legend usually consists of multiple entries each represented by a label an a form/shape.
The values you are talking about belong to the Legend.
To disable them (prevent them from being displayed), call
Legend l = chart.getLegend();
l.setEnabled(false);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With