ChartsOrg / ChartsOrg/Charts

Enabling focus on pie chart graph error (canBecomeFocused)

Open
#2,091 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

Hello,

I'm building an app for tvOS.
I have a view controller with few graphs. I made them focusable by extending the classes:

`extension BarChartView{
override open var canBecomeFocused: Bool{
return true
}
}
extension HorizontalBarChartView{
override open var canBecomeFocused: Bool{
return true
}
}
extension PieChartView{
override open var canBecomeFocused: Bool{
return true
}
}
extension LineChartView{
override open var canBecomeFocused: Bool{
return true
}
}`

Once I focus on the PieChartView I get the following errors running repeatedly (and the graph gets broken):

Jan 18 12:03:51 ***[1014] : If you want to see the backtrace, please set CG_NUMERICS_SHOW_BACKTRACE environmental variable.
2017-01-18 12:03:51.809137 ***[1014:595773] 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.

Dear graph masters - please advice what to do...

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.