-
-
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
it will crash when i insert data on RadarChart #1833
Comments
first format your code as readable code. |
|
You totally missed the point how it crashes, and how you insert the data. double mult = 80;
double min = 20;
RadarChartDataEntry *entry1 = [[RadarChartDataEntry alloc] initWithValue:(arc4random_uniform(mult) + min)];
[_chartView.data.dataSets.firstObject addEntry:entry1];
[_chartView.data notifyDataChanged];
[_chartView notifyDataSetChanged]; If it still crashes on your side, make sure you post a full code sample so I can paste into ChartsDemo and reproduce, then ropen this thread. |
The following causes a crash of the same type as the previous poster:
|
It would appear that this is because
EDIT: I believe this is a result of assuming that |
I need to know why interval is 0? Could you provide the data when it's calculated as 0? |
I believe that the data in my example causes the crash. |
App freezing when I put data into my radar view. Even testing out simple values causes issues. The Any ideas?
|
example:
RadarChartDataEntry *entry1 = [[RadarChartDataEntry alloc] initWithValue:[@"0.334" floatValue]]; RadarChartDataEntry *entry2 = [[RadarChartDataEntry alloc] initWithValue:[@"0.330" floatValue]]; RadarChartDataEntry *entry3 = [[RadarChartDataEntry alloc] initWithValue:[@"0.330" floatValue]]; [entries1 addObject:entry1]; [entries1 addObject:entry2]; [entries1 addObject:entry3];
sometime when i insert some data,it will crash at YAxisRendererRadarChart.swift line 137。
fatal error: Double value cannot be converted to Int because it is either infinite or NaN
The text was updated successfully, but these errors were encountered: