react-native-chart-kit
react-native-chart-kit copied to clipboard
Stacked bar error on all 0 data
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"] };
For me too!
[0, 0, 0], [0, 0, 0]
u can handle from your code. is it all '0'or have values.
same
issue still persists even after a year. Any kind of workarounds?