0👍
✅
The problem came from lists in backgroundColor and borderColor.
datasets: [{
label: '# of Votes',
data: [12, 19, 3, 5, 2, 3],
backgroundColor: 'rgba(255, 159, 64, 0.2)',
borderColor: 'rgba(255,99,132,1)',
borderWidth: 1
}
Indeed, for kind equal to bar we can have one color for each label.
For the kind “line”, seems that we can’t have a list with only one value.
We only can have one color under the curve and one color for the border.
Source:stackexchange.com