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

Issue with BarDataEntry Method #1504

Closed
astrike30 opened this issue Sep 20, 2016 · 1 comment
Closed

Issue with BarDataEntry Method #1504

astrike30 opened this issue Sep 20, 2016 · 1 comment

Comments

@astrike30
Copy link

I was going through this tutorial for the (fabulous) Charts framework. In there example code they use this method:
let dataEntry = BarChartDataEntry(values: values[i], xIndex: i)

In this for loop:
for i in 0..<dataPoints.count { let dataEntry = BarChartDataEntry(values: values[i], xIndex: i) dataEntries.append(dataEntry) }

However I get this error in Xcode Argument labels '(values: values[i], xIndex: i)' do not match any available overloads. I'm not sure if the method was deprecated somewhere along the line and I could really use any help.

Thanks in advance for any help and for the terrific framework!

@danielgindi
Copy link
Collaborator

The tutorial is for Charts 2.*, while the current code on master branch is Charts 3.0.
Charts 3.0 is in beta, coming closer to a release everyday (We're just finishing up with the last important bugs).

You're can contact the tutorial makers and ask them to update it for Charts 3.0.
I know there are more than a few tutorials out there, and hoping that they will be updated!

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