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

When i use ios-charts with swift .. #50

Closed
paneaktae opened this issue Apr 27, 2015 · 5 comments
Closed

When i use ios-charts with swift .. #50

paneaktae opened this issue Apr 27, 2015 · 5 comments

Comments

@paneaktae
Copy link

How i fix it?
screen shot 2558-04-27 at 10 49 40 am

@liuxuan30
Copy link
Member

could you give more info? It seems you feed the wrong arguments

@saivenkatesh005
Copy link

i am also getting same problem can you please any one help me this issue and is there any sample swift project for iOS charts

@danielgindi
Copy link
Collaborator

The first argument is not named in this case, so it should be LineChartDataSet(yVals, label: ...). Although it should be named. Xcode knows how to automatically fix your call!

I will change the function signatures soon to have all the arguments named so keep up with the updates and let xcode fix it back when necessary.

@danielgindi
Copy link
Collaborator

Actually never mind - the initializers always have the first argument named. I have absolutely no idea why you are getting that error.

@danielgindi
Copy link
Collaborator

Well, actually, I do. The compiler tells you that there's no initializer that accepts an NSMutableArray. It accepts a simple swift array, not an NSMutableArray.

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

4 participants