0👍
You should change the way of defining ChartColors
. The array should contain a single object and each of its properties should be defined as an array of values.
ChartColors = [{
backgroundColor: ['rgba(0, 102, 235, 0.3)', 'rgba(235, 78, 54, 0.2)', 'rgba(67, 210, 158, 0.2)'],
borderColor: ['#1862c6', '#ff5723', '#00caac'],
pointBackgroundColor: ['rgba(0, 102, 235, 1)', 'rgba(235, 78, 54, 1)', 'rgba(67, 210, 158, 1)'],
pointBorderColor: ['#1862c6', '#ff5723', '#00caac'],
pointHoverBackgroundColor: ['#fff', '#fff', '#fff'],
pointHoverBorderColor: ['rgba(0, 102, 235, 0.4)', 'rgba(235, 78, 54, 0.8)', 'rgba(67, 210, 158, 0.8)']
}]
Source:stackexchange.com