Chartjs-LinearGradient doesnt't work on chartJs canvas for Angular

0👍

You correctly created the linear gradient but forgot to assign it to the backgroundColor property of the dataset.

datasets: [{
  label: 'test',
  data: [100, 200, 300],
  backgroundColor: gradient // you need to do this
}]

Please take a look at your amended StackBlitz.

Leave a comment