MDRotatingPieChart icon indicating copy to clipboard operation
MDRotatingPieChart copied to clipboard

If total is zero application crashes with CALayerInvalidGeometry

Open Nikita2k opened this issue 9 years ago • 2 comments

If total value is zero (in case there is not data yet) app crashes with message

Terminating app due to uncaught exception 'CALayerInvalidGeometry', reason: 'CALayer position contains NaN: [nan nan]'

Possible solution: ask delegate for UIView to show instead of Pie Chart or do something to prevent from dividing on zero

Nikita2k avatar Aug 24 '15 14:08 Nikita2k

@Nikita2k Hi did you solved this?

cesarmtz93 avatar Jan 17 '17 03:01 cesarmtz93

Hi did you solved this?

vijayender1991 avatar Mar 06 '18 05:03 vijayender1991