[Chartjs]-In bar chartjs report zero values are skipped so bars are invalid

1👍

there is count: 13, id: 4 and count: 22, id: 2

which means, your script is confusing Batman with Roger Rabbit.

there might be further values wrong; it only gets the most obvious with 0 values.

better merge the arrays on the server-side, to have them readily consumable for the chart; this would permit easier index assignment – and it would also speed up the run-time of the JS. less complexity is commonly easier the handle than useless complexity (as it is with client-side merging of the arrays).

Leave a comment