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
There is an error in LineChartRenderer class drawHighlighted:context:indices:
I got the 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.
because of following lines of code:
let x = high.x // get the x-position
let y = high.y * Double(animator.phaseY)
Seems the lines should be following:
let x = e.x // get the x-position
let y = e.y * Double(animator.phaseY)
Please fix.
Thank you.
The text was updated successfully, but these errors were encountered:
you have to first figure out why your high contains NaN.
Please help debug how highlight object is generated, to see if it's your fault or ours; if latter, we will fix it.
feel free to reply with more details and reopen this issue.
I think the height contains NaN because I use lineChartView.highlightValue(x: someIntValue, dataSetIndex: 0, callDelegate: false)
If I use tap to highlight value I don't have such problem.
@klenovdimalineChartView.highlightValue(x: someIntValue, dataSetIndex: 0, callDelegate: false) calling this won't trigger NaN crash, unless your x is NaN, or leads to NaN, which is not allowed in the first place.
Hi,
Thank you for porting the lib.
There is an error in LineChartRenderer class drawHighlighted:context:indices:
I got the error:
because of following lines of code:
Seems the lines should be following:
Please fix.
Thank you.
The text was updated successfully, but these errors were encountered: