Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

setDrawSliceText(boolean) is deprecated

Is there any way to solve setDrawSliceText is deprecated. I did not find any solution regarding this.

How to get pieChart.setDrawSliceText(false);

like image 656
ashish Avatar asked Nov 03 '17 11:11

ashish


1 Answers

It is deprecated, however in its javadoc it states:

/**
 * Set this to true to draw the entry labels into the pie slices (Provided by the getLabel() method of the PieEntry class).
 * Deprecated -> use setDrawEntryLabels(...) instead.
 *
 * @param enabled
 */

so use setDrawEntryLabels instead

like image 177
pleft Avatar answered Oct 15 '22 10:10

pleft