I'm trying to create a Pie chart using MPAndroidChart. How do I set the text size for the values displayed on the chart pertaining to the various percentages of components specified?
In short, I want to make these labels appear bigger:
// reference to your data
PieData data = new PieData(labels, dataSet);
// this increases the values text size
data.setValueTextSize(40f); // <- here
Try this:
pieChart.setEntryLabelTextSize(8f);
This will change the size of your piechart slice label.
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