Colors

    You can also pass a 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 Patternomaly library you can generate patterns to fill datasets.

    1. var chartData = {
    2. datasets: [{
    3. backgroundColor: [
    4. pattern.draw('square', '#ff6384'),
    5. pattern.draw('circle', '#36a2eb'),
    6. pattern.draw('triangle', '#ffce56'),
    7. ]
    8. }],
    9. };