1👍
The color you’re getting now is the default color the library has set rgba(0, 0, 0, 0.1)
, and this is because you’re giving an array instead of a string or a canvas pattern/gradient object borderColor: [].concat(dataColors)
. General stats command line 97
For more info you can check here
https://www.chartjs.org/docs/latest/general/colors.html
- [Chartjs]-Chart.js load totally new data
- [Chartjs]-ChartJS – is there any way to remove blank space around pie charts?
Source:stackexchange.com