-
-
Notifications
You must be signed in to change notification settings - Fork 6k
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
Crash on the function isDrawingValuesAllowed #3772
Comments
@nijoshjose ran into a similar problem. managed to find a solution? |
in my case, the error was related to trying to set visibleXRangeMaximum to an empty dataset |
I am getting this crash when I use the charts for a longer time, like zooming in and zooming out multiple times, does anyone found any solution? @dtmp @nijoshjose @ |
anyone resolved this issue? |
hi @alimumtaz, it seems that you have to give a value for setMaximumScaleX as well as the maxVisibleCount. It worked for me.
hope it work for you too. |
What did you do?
ℹ I'm adding points around 50 or more in the line chart. The points are placed adjacent to another point and space between point is less. After that, I'm clicking on any points it becomes crash.
What did you expect to happen?
ℹ I want to run my application smoothly without the crash.
What happened instead?
ℹ I got crash from this line
in this line CGFloat(dataProvider?.maxVisibleCount ?? 0) * viewPortHandler.scaleX it become infinity.
here is the full function
So what i'm supposed to do?
Charts Environment
Charts version: 3.1.1
Xcode version: 10.1
Swift version: 4.2
macOS version running Xcode: macOS Mojave (10.14.1)
The text was updated successfully, but these errors were encountered: