Plop,
I need help with the directive chart-color of angular-chartjs.
Before, the directive was called chart-colours.
I want to set multiple colors to my chart (like pie chart -> http://jtblin.github.io/angular-chart.js/)
I tried several things :
$scope["graph5"].colors = [{fillColor:["#FF0000", "#00FF00", "#0000FF", "#00FFFF", "#FFFF00"]}];
$scope["graph5"].colors = [ { fillColor: '#ffff00' }, { fillColor: '#0066ff' } ];
$scope["graph5"].colors = [{ // blue
fillColor: 'rgba(151,187,205,0.2)',
strokeColor: 'rgba(151,187,205,1)',
pointColor: 'rgba(151,187,205,1)',
pointStrokeColor: '#fff',
pointHighlightFill: '#fff',
pointHighlightStroke: 'rgba(151,187,205,0.8)'
}];
And my HTML :
<canvas class="chart chart-doughnut" chart-data="graph5.data" chart-labels="graph5.labels" chart-options="graph5.options" chart-colors="graph5.colors"></canvas>
Thanx !
PS : Sorry for my bad english...