-
Notifications
You must be signed in to change notification settings - Fork 420
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, lineChartView "must implement numberOfPointsInLineChartView" ? #38
Comments
Think I just forgot to set the delegate / datasource. |
Cool! Closing. |
Still crashes if I don't have numberOfPointsInLineChartView... was this not switched to verticalValueForHorizontalIndex? Also wants me to have heightForIndex; wasn't this switched to verticalValueForHorizontalIndex? Neither of these methods are in the documentation anymore. |
Cool I'll look into it. |
In order to support multiple lines, numberOfPointsInLineChartView was moved over to numberOfLinesInLineChartView + numberOfVerticalValuesAtLineIndex. There are no instances of numberOfPointsInLineChartView within the library anymore. Are you sure you have the latest? Are you using cocoapods? Do a fresh clone of the repository and compare the header and implementations of JBLineChartView. |
Also, do a free text search for "numberOfPointsInLineChartView"; it should return nothing. |
Yeah, I already checked to make sure I had the latest version, I searched for the old methods and did not find anything, and I made sure I was on the latest version. Files are identical |
How it is printing out the assert 'NSInternalInconsistencyException', reason: 'JBLineChartView // dataSource must implement - (NSInteger)numberOfPointsInLineChartView:(JBLineChartView *)lineChartView' when the text "numberOfPointsInLineChartView" doesn't even exist in the project? Maybe clean and rebuild? I'm stumped. |
Tried a clean, also tried a full delete of the app. No luck. Will try to figure out on my end. Probably my fault somehow. |
Heh, yeah sorry, I have no clue. |
Right before the assertion failure mentioned above I get: |
Tried removing and re-adding the pod. No luck. Tried making a new project and copied the code over, and it works fine in the new project... |
** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'JBLineChartView // dataSource must implement - (NSInteger)numberOfPointsInLineChartView:(JBLineChartView *)lineChartView'
I'm on the latest version (2.2) and I implemented the methods:
I tried adding numberOfPointsInLineChartView... but it didn't help and I don't think that method is used anymore...
I must be doing something wrong...
The text was updated successfully, but these errors were encountered: