ChartDataSet.entryIndex(xValue:yValue:rounding) doesn't handle NaN for xValue
Open
- Dominant language
- Swift
- Stars
- 28k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
https://github.com/danielgindi/Charts/blob/899fe1d13208ee6c08ce8db790a834f77dc9aee7/Source/Charts/Data/Implementations/Standard/ChartDataSet.swift#L274
This would be best described as not supporting default PieChartDataEntries that have their x values set to Nan. I'm don't think that is an issue, but passing a nan as the xValue should not cause an infinite loop.
Infinite loop Fix:
https://github.com/chrisjeane/Charts/tree/fixes-entry-index-nan-handling
Contributor guide
Assessment
This issue has not been assessed yet.