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)
Source:stackexchange.com