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

How to set yAxis to normal number #160

Closed
paneaktae opened this issue Jun 18, 2015 · 8 comments
Closed

How to set yAxis to normal number #160

paneaktae opened this issue Jun 18, 2015 · 8 comments

Comments

@paneaktae
Copy link

How to set yAxis to 1000 but not 1,000. Please Help me !!

@danielgindi
Copy link
Collaborator

Set the valueFormatter you want.

@paneaktae
Copy link
Author

Example for me. Please Thx

@liuxuan30
Copy link
Member

use NSNumberFormatterNoStyle

@paneaktae
Copy link
Author

var set2 : LineChartDataSet = LineChartDataSet(yVals: yVals2, label: "OrderData2")
// set1.colors = ChartColorTemplates.liberty()
set2.drawValuesEnabled = false
set2.setColor(UIColor(red: 125/255.0, green: 137/255.0, blue: 150/255.0, alpha: 1.0))
set2.setCircleColor(TNMWEColorCirCleOrder)
set2.lineWidth = 2
set2.circleRadius = 3
set2.drawCirclesEnabled = false
set2.drawFilledEnabled = false
set2.drawCircleHoleEnabled = false
set2.valueFormatter?.numberStyle = NSNumberFormatterStyle.NoStyle

true or false . Please help me Thank you.

@liuxuan30
Copy link
Member

if set2.valueFormatter? did contain a valid formatter, it should work.

@paneaktae
Copy link
Author

Not work TT, Please you set manually valueFormatter Example to me.

@danielgindi
Copy link
Collaborator

danielgindi commented Jun 18, 2015 via email

@liuxuan30
Copy link
Member

Take a look at the NSNumberFormatter APIs and properties. Also use stack overflow to ask such issues.

double check if you set anything about groupingSeparator and usesGroupingSeparator

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

3 participants