Chartjs-Chart JS, backgroundColor not showing

0👍

If all bars within a same dataset should have the same color, you should define backgroundColor as string instead of array.

Instead of this…

backgroundColor: ['green','green','green'],

try this:

backgroundColor: 'green',

Leave a comment