Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i want to add % in value #1579

Closed
KushThakkar opened this issue Sep 29, 2016 · 2 comments
Closed

i want to add % in value #1579

KushThakkar opened this issue Sep 29, 2016 · 2 comments

Comments

@KushThakkar
Copy link

I want to like this: "100.0%" instead of "100.0"

screen shot 2016-09-29 at 11 28 45 am

i try this code:

self.arrPos[i] = CGFloat(Int(pos * 100.0)) / CGFloat(arrTotal[i] as! Double)
self.arrNeg[i] = CGFloat(Int(neg * 100.0)) / CGFloat(arrTotal[i] as! Double)

cell.barChartView.data = self.setChartBarGroupDataSet(arrAgeGrop, values: arrPos, values2:arrNeg, sortIndex: 1)

@danielgindi
Copy link
Collaborator

You use formatters to show whatever label you want. Please look at the demos.

@KushThakkar
Copy link
Author

thanks. its done using formatters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants