You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I tried to customise the library in order to display the int values(Above image represents my requirement)...in some links they mentioned to follow NSNumberFormatter.But i failed to use that solution am not getting which class i should customise to get the required solution...can any one help me to resolve this issue.
I spent more than a day to find solution but no use.
Thanks in advance
The text was updated successfully, but these errors were encountered:
let track = ["Passed", "Failed", "Pending"]
let money = [10, 6, 10]
var entries = PieChartDataEntry
for (index, value) in money.enumerated() {
let entry = PieChartDataEntry()
let set = PieChartDataSet( values: entries, label: "")
let data = PieChartData(dataSet: set)
pieChartView.data = data
let formatter = NumberFormatter()
formatter.minimumFractionDigits = 0
data.setValueFormatter(DefaultValueFormatter(formatter:formatter))
Hi,
I tried to customise the library in order to display the int values(Above image represents my requirement)...in some links they mentioned to follow NSNumberFormatter.But i failed to use that solution am not getting which class i should customise to get the required solution...can any one help me to resolve this issue.
I spent more than a day to find solution but no use.
Thanks in advance
The text was updated successfully, but these errors were encountered: