Percentage is not show on pie chart
minhtamkv opened this issue · comments
minhtamkv commented
Hi there,
Although although my last Charts version shown percentage, current Charts version didn't show. How can I fix it.
My code:
let pFormatter = NumberFormatter()
pFormatter.numberStyle = .percent
pFormatter.maximumFractionDigits = 1
pFormatter.multiplier = 1
pFormatter.percentSymbol = " %"
data.setValueFormatter(DefaultValueFormatter(formatter: pFormatter))
Patrick Battisti Forsthofer commented
this fixed the problem to me
#4690 (comment)