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

Double value cannot be converted to Int in AxisRendererBase.swift on line 125 #1920

Closed
umairnow opened this issue Dec 5, 2016 · 1 comment

Comments

@umairnow
Copy link

umairnow commented Dec 5, 2016

This issue is still there in AxisRendererBase.swift on line 125
fatal error: Double value cannot be converted to Int because it is either infinite or NaN

@umairnow
Copy link
Author

umairnow commented Dec 6, 2016

I am able to resolve this. I was doing like this in chart settings
self.viewChart.moveViewToX(Double.Infinity)
and it is fixed by doing this
self.viewChart.moveViewToX(Double(CGFloat.greatestFiniteMagnitude))

@umairnow umairnow closed this as completed Dec 6, 2016
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