I have a pair of pie / donut charts displayed with ChartJS . Usually they contain data like [200, 1200, 300] and [30, 500] for evaluation, but in rare cases they contain [0, 0, 0] and [0, 0] . The problem is that the chart disappears, although my border is on. I solved this problem by adding dummy values ββto the first element in the arrays, but I don't like how the code looks, and I want a better way.
Is it possible to make the border visible (circle) when the array contains only zeros?
Edit: I am not getting any answers to this question. Is this considered an error when the border is not displayed on empty data, or is this the intended behavior? I don't know if anyone else had this problem. I still need to find an elegant way to deal with this problem, but I have not found it yet.
Pelle source share