I have different colors specified in my scope:
$scope.colors = [{ // light grey
backgroundColor: 'rgba(148,159,177,0.2)',
pointBackgroundColor: 'rgba(148,159,177,1)',
pointHoverBackgroundColor: 'rgba(148,159,177,1)',
borderColor: 'rgba(148,159,177,1)',
pointBorderColor: '#70ff06',
pointHoverBorderColor: 'rgba(148,159,177,0.8)'
},
{ // dark grey
backgroundColor: 'rgba(77,83,96,0.2)',
pointBackgroundColor: 'rgba(77,83,96,1)',
pointHoverBackgroundColor: 'rgba(77,83,96,1)',
borderColor: 'rgba(77,83,96,1)',
pointBorderColor: '#2129ff',
pointHoverBorderColor: 'rgba(77,83,96,0.8)'
},
{ // black
backgroundColor: 'rgba(0,0,0,0.2)',
pointBackgroundColor: 'rgba(0,0,0,1)',
pointHoverBackgroundColor: 'rgba(0,0,0,1)',
borderColor: 'rgba(0,0,0,1)',
pointBorderColor: '#000000',
pointHoverBorderColor: 'rgba(0,0,0,0.8)'
}];
I have also defined a canvas element in the HTML:
<canvas id="line" class="chart chart-line" chart-data="data"
chart-labels="labels" chart-series="series" chart-options="options" chart-colors="colors"
chart-dataset-override="datasetOverride" chart-click="onClick">
</canvas>
However, despite my efforts to update "$scope.colors" and use "chart-colours" attribute instead of "chart-colors", the changes are not reflecting on the page. Does anyone know how I can resolve this issue?