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

X-Axis and Y-Axis is not shown in swift 3 #1701

Closed
saied-nasiripour opened this issue Oct 23, 2016 · 6 comments
Closed

X-Axis and Y-Axis is not shown in swift 3 #1701

saied-nasiripour opened this issue Oct 23, 2016 · 6 comments

Comments

@saied-nasiripour
Copy link

in swift 3 (xcode 8)
these lines of code is not work:

let dataEntry = BarChartDataEntry(value: values[i], xIndex: i)

and

let chartDataSet = BarChartDataSet(yVals: dataEntries, label: "Units Sold")
let chartData = BarChartData(xVals: months, dataSet: chartDataSet)

please help me
this makes to chart is not work properly
yVals and xVals and xIndex are unknown

screen shot 2016-10-23 at 17 23 07
BarChartViewController.swift.zip

@saied-nasiripour
Copy link
Author

thanks

@Bigscaltest
Copy link

@saied685 Have you got any solution for this issue?
If yes then please give me solution.
I have same issue for BarChart in swift 3.

Thanks

@liuxuan30
Copy link
Member

liuxuan30 commented Oct 26, 2016

please take a look at the func. Swift 3 changed a lot about naming, so it might changes.
If you are talking about Chart 3.0, x axis redesigned, so the API changes as well.

@saied-nasiripour
Copy link
Author

Bigscaltest i have a solution ..stay in touch...i send this soluton ater some day...good luck

@saied-nasiripour
Copy link
Author

I found a solution...stay in touch...
Connect with me by this gmail
I send this solution after some day
On 25 Oct 2016 14:28, Bigscaltest [email protected] wrote:@saied685 Have you got any solution for this issue?
If yes then please give me solution.
I have same issue for BarChart in swift 3.

Thanks

—You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub, or mute the thread.

@saied-nasiripour
Copy link
Author

go to this link:
https://github.com/i-schuetz/SwiftCharts

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