Colors
You can also pass a CanvasGradient (opens new window) object. You will need to create this before passing to the chart, but using it you can achieve some interesting effects.
For example, if you wanted to fill a dataset with a pattern from an image you could do the following.
Using the library you can generate patterns to fill datasets.
const chartData = {
datasets: [{
backgroundColor: [
pattern.draw('circle', '#36a2eb'),
pattern.draw('triangle', '#ffce56')
]
}],