ChartsOrg / ChartsOrg/Charts

ChartDataSet.entryIndex(xValue:yValue:rounding) doesn't handle NaN for xValue

Open
#3,989 1 comment 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.