react-native-pie-chart icon indicating copy to clipboard operation
react-native-pie-chart copied to clipboard

Pie Chart

Open gaurav0497 opened this issue 3 years ago • 1 comments

While using piechart if we provide 0,0 value in series it crashes application.

Try : series={[0,0,0]}

gaurav0497 avatar Jan 15 '22 13:01 gaurav0497

Thanks for your report.

The series is invalid, and nothing can be drawn. The app should handle these situations and does whatever needs to be done.

I changed the library to throw a proper error in this case. It will still crash your app though.

aidin36 avatar Jan 31 '22 22:01 aidin36