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

LineChartView is rotating LineChartData in 3.0 #1663

Closed
natanrolnik opened this issue Oct 16, 2016 · 1 comment
Closed

LineChartView is rotating LineChartData in 3.0 #1663

natanrolnik opened this issue Oct 16, 2016 · 1 comment

Comments

@natanrolnik
Copy link

Hi,

I migrated my codebase to Swift 3.0, and I'm using Charts from master.

I had a LineChartView that displayed correctly the following:

chartsok

However, after migrating to master, the dots/line are being rendered rotated, in the wrong orientation, and I'm getting the following:

charts3 0

Any idea what I might be doing wrong?

Thanks!

@natanrolnik
Copy link
Author

natanrolnik commented Oct 16, 2016

Oh no, that was totally my bad.
I was switching x and y:
let entry = ChartDataEntry(x: value, y: Double(index))
instead of the correct one:
let entry = ChartDataEntry(x: Double(index), y: value)

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

1 participant