Mpandroidchart: The Percentage not work for PieChart

Created on 4 May 2019  路  1Comment  路  Source: PhilJay/MPAndroidChart

the setUsePercentValues() not working for the version-v3.1.0.
It will always display the value instead of appending the percentage.

Most helpful comment

I have the same issue for v3.1.0

Updated:

Fixed with replacing this line :

pieData.setValueFormatter(new PercentFormatter());

With this line:

pieData.setValueFormatter(new PercentFormatter(pieChart));

>All comments

I have the same issue for v3.1.0

Updated:

Fixed with replacing this line :

pieData.setValueFormatter(new PercentFormatter());

With this line:

pieData.setValueFormatter(new PercentFormatter(pieChart));

Was this page helpful?
0 / 5 - 0 ratings

Related issues

andreyfel picture andreyfel  路  3Comments

AiTheAnswer picture AiTheAnswer  路  3Comments

JungYongWook picture JungYongWook  路  3Comments

DarkHelmet67 picture DarkHelmet67  路  3Comments

mrZizik picture mrZizik  路  3Comments