-
Notifications
You must be signed in to change notification settings - Fork 419
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
NSInternalInconsistencyException - JBLineChartView // dataSource must implement #68
Comments
Put a breakpoint @ line 411 in JBLineChartView and inspect the dataSource instance at the time of the exception. I'm guessing it's nil. |
The stack trace points to line 411. Not sure how the breakpoint doesn't trip if it's occurring exactly on that line. Drop this before:
& put a breakpoint on the log. See what happens.... |
Or remove the assert on line 411 altogether and see what happens... |
When the dataSource is nil, what is the execution path leading up to - (CGFloat)padding? Who is calling it, and when? Screenshot of the full stack would help. |
Can you please explain a little better what you want me to do, I'm new to iOS Development and don't understand XCode very well. |
Really sorry I can't help you any further. The fact that the dataSource is nil and your catching it at a breakpoint should be more than enough for you to debug the issue. |
After struggling with this for over a week, I shifted to BEMSimpleLineGraph and didn't get any more errors. |
I've been using
JBLineChartView
and it has been working great, but now I'm getting this error:The flow of my app is something like this:
UIViewControllers
in a Navigation Controller (All push segues) forUIViewControllers
haveJBLineChartViews
I can't understand why is this happening, even though I implemented the above mentioned method and the chart loads in Month Selection the second time (but not in the Day Selection).
Here are the

JBLineChartView
delegate and datasource methods in my Day Selection View Controller:The text was updated successfully, but these errors were encountered: