You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've searched every issue and the documentation and cannot seem to get my code to work. I was wondering if you guys could help me fix my issue as described below.
First of all, with the change of formatters, I cannot get it to work. Here's an example of what I had:
When I build, I get the following error:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[ChartDefaultAxisValueFormatter setParamResultsDict:]: unrecognized selector sent to instance 0x15e2015b0'
If I comment out the formatter, the points I pass through will not be displayed on the graph and I get the following error:
: Error: this application, or a library it uses, has passed an invalid numeric value (NaN, or not-a-number) to CoreGraphics API and this value is being ignored.Please fix this problem.
The text was updated successfully, but these errors were encountered:
Why SPRangeFormatter *rangeFormatter = (SPRangeFormatter *)leftAxis.valueFormatter;?
If you haven't set leftAxis.valueFormatter to be an SPRangeFormatter, then it won't return a SPRangeFormatter.
So your call to .paramResultsDict results in "unrecognized selector sent to instance ".
Have you read the migration notes (#1474)?
You have three options: Either create a ChartDefaultAxisValueFormatter and pass it your old formatter, subclass ChartDefaultAxisValueFormatter, or make SPRangeFormatter conform to the IAxisValueFormatter protocol and pass it to leftAxis.valueFormatter.
Greetings all,
I've searched every issue and the documentation and cannot seem to get my code to work. I was wondering if you guys could help me fix my issue as described below.
First of all, with the change of formatters, I cannot get it to work. Here's an example of what I had:
![screen shot 2016-10-10 at 2 35 17 pm](https://cloud.githubusercontent.com/assets/17553821/19251943/d4a0252a-8ef6-11e6-94eb-53f1ea37aa0d.png)
The old code (short version) consisted of:
Where SPRangeFormatter is defined in its own class with a setter method:
With the update, I've changed the code to the following:
When I build, I get the following error:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[ChartDefaultAxisValueFormatter setParamResultsDict:]: unrecognized selector sent to instance 0x15e2015b0'
If I comment out the formatter, the points I pass through will not be displayed on the graph and I get the following error:
: Error: this application, or a library it uses, has passed an invalid numeric value (NaN, or not-a-number) to CoreGraphics API and this value is being ignored.Please fix this problem.
The text was updated successfully, but these errors were encountered: