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

setVisibleXRangeMinimum cause crash #946

Closed
lionhylra opened this issue Apr 13, 2016 · 1 comment
Closed

setVisibleXRangeMinimum cause crash #946

lionhylra opened this issue Apr 13, 2016 · 1 comment

Comments

@lionhylra
Copy link

In the demo, adding line: [_chartView setVisibleXRangeMinimum:5]; to LineChart1ViewController.m causes crash

@danielgindi
Copy link
Collaborator

Well you were calling it before notifyDataSetChanged were called (when data was set), so axisRange was 0.0, and it caused a division by zero.

So: 1. Call it in a proper place, 2. We'll fix the crash :-)

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

2 participants