-
-
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
highestVisibleXIndex is smaller than lowestVisibleXIndex #940
Comments
I’ve added back trace.
|
you can simply post the text rather than image. |
Yes, exactly. And in my own project, when I apply 'autoScaleMinMaxEnabled = true' to my bar chart, it crashes directly for the same reason. |
In the screenshot above, the end value is smaller than start value in the for loop. |
I don't think changing 'for in range' to 'stride' will fix |
start may less than endValue
why not? I did a quick test, it won't crash then. |
if endValue < start, we won't step in the loop, and yMin, yMax is from entries[start]. So I think it is harmless. |
ok, I will try it later. Thanks |
Fixes Xcode auto-migration fault, incorrect intervals (#940)
I just downloaded the demo app, adding one line
_chartView.autoScaleMinMaxEnabled = YES;
to the BarChartViewController.m at line:56.And I run the demo app, and open the bar chart, zoom in. It crashes.
The screenshot:
screenshot
Back trace:
back trace
The text was updated successfully, but these errors were encountered: