-
-
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
Fatal error when providing multiple data sets in PieChartData #2099
Labels
Comments
Ik have the same problem in my project. Waiting on a fix :) |
Is there more information about this bug? Is there a fix? |
It doesn't seem to :/
… Le 9 févr. 2017 à 17:42, Rick de Jong ***@***.***> a écrit :
Is there more information about this bug? Is there a fix?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Hey guys Im experiencing the same issue here, any fix recommendations? |
As far as I remember, pie chart only allow 1 data set. open override func getDataSetByIndex(_ index: Int) -> IChartDataSet?
{
if index != 0
{
return nil
}
return super.getDataSetByIndex(index)
} |
liuxuan30
added a commit
to liuxuan30/Charts
that referenced
this issue
Jun 5, 2017
… but people will set more than that
liuxuan30
added a commit
that referenced
this issue
Jun 5, 2017
fix #2099, avoid crash when some chart only allow 1 data set
PeterSrost
pushed a commit
to sokol8/Charts
that referenced
this issue
Oct 31, 2018
… but people will set more than that
PeterSrost
pushed a commit
to sokol8/Charts
that referenced
this issue
Oct 31, 2018
fix ChartsOrg#2099, avoid crash when some chart only allow 1 data set
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey,
Thank you for open sourcing such a work!
I'm quite new in Swift so I would really appreciate if someone could help me figuring out some strange behavior.
Basically, what I'm trying to do is to initialize a pie chart data with multiple data sets. Here is the code that I use:
When I do that, I get this error:
fatal error: unexpectedly found nil while unwrapping an Optional value
.It seems to happen here, on the second iteration, when
i
equals1
.I reproduced it in an example project that can be found here.
Cheers!
The text was updated successfully, but these errors were encountered: