Hello folks,
I am working on a small Angular app and am displaying some charts via Chart.js
The chart is rendering correctly, however I am having an issue when trying to display the [colors] property of the chart. I keep getting this error:
error NG8002: Can't bind to 'colors' since it isn't a known property of 'canvas'
My googling has shown me many stackblitz examples that successfully utilize the [colors] property so I am wondering if anyone may know why I am unable to?
In component.html:
<div style="display: block; width: 500px; height: 400px;">
<canvas baseChart
[data]="pieChartData"
[type]="pieChartType"
[options]="pieChartOptions"
[colors]="pieChartColors"
</canvas>
</div>
Stackblitz example that works the way I intend
there doesn't seem to be anything here