Closed
Description
When adding the attribute chart-colors to the canvas for a bar graph:
chart-colors= [{
fillColor: 'rgb(54,172,207)',
strokeColor: 'rgb(54,172,207)',
highlightFill: 'rgb(54,172,207)',
highlightStroke: 'rgb(54,172,207)'
}]
The bar colors instantly go to a grey -> rgba(0,0,0,0.1) as the global default noted in: http://www.chartjs.org/docs/#chart-configuration-colors.
It doesn't matter what inputs are in the array, but the fact that there is an array makes it go to grey. I know it is registering because the grey bar is different than the default bar color. By using:
.config(['ChartJsProvider', function (ChartJsProvider) {
// Configure all charts
ChartJsProvider.setOptions({
chartColors: ['#36accf']
});
}])
I am able to change the chart color, but not all the specific details that I want to change. Any help is appreciated. Thanks!
Metadata
Metadata
Assignees
Labels
No labels