[Vuejs]-Different color for each bar in a bar graph in ChartJS and VueJS

0👍

the this.poolColors method is returning an array so you are passing an array inside an array hence it is considered as one element … it should be like this :

backgroundColor: this.poolColors(vm.distributed_per_day.length),
borderColor: this.poolColors(vm.distributed_per_day.length)

Leave a comment