I use the library MPAndroidChart to draw a pie chart.
I want to show only the slice text(X) and not the value of the slice(Y). The only way that I have found is to Override the Valuesformatter and send always an empty string.
data.setValueFormatter(new ValueFormatter()
{
@Override
public String getFormattedValue(float value)
{
//return formatter_currency.format(value) + " " + currency;
return ""; // Display only categories name.
}
});
But in this way all the names doesn't fit the slice correctly(there is the empty string under it).
There is a way to achieve this?