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

Stacked bar error on all 0 data

Open daxaxelrod opened this issue 3 years ago • 4 comments

The example from the readme works. But in the off chance that that data for the chart becomes all zeros, the chart throws an svg field length mismatch error

return { labels: ["A", "B"], legend: ["M1", "M2", "M3"], data: [ [0, 0, 0], [0, 0, 0] ], barColors: ["#dfe4ea", "#ced6e0", "#a4b0be"] };

daxaxelrod avatar Jan 19 '21 22:01 daxaxelrod

For me too!

prabhu70727 avatar Mar 03 '21 09:03 prabhu70727

[0, 0, 0], [0, 0, 0]

u can handle from your code. is it all '0'or have values.

sabeer-ali avatar May 18 '21 07:05 sabeer-ali

same

dibyopra avatar Oct 08 '21 03:10 dibyopra

issue still persists even after a year. Any kind of workarounds?

kidfromjupiter avatar May 03 '22 12:05 kidfromjupiter