How to change colours for Angular-Chart.js

前端 未结 7 1627
误落风尘
误落风尘 2020-12-03 01:12

I use Angular-Chart.js (the AngularJS Chart.js version) to create a bar chart. The Chart is working with the options except for the colours.

Even if I set them it is

7条回答
  •  星月不相逢
    2020-12-03 01:58

    As @pankajparkar said. Just adding that you can also pass html colours and angular-chart.js will define the colour objects properly in rgba with the proper nuances e.g. $scope.colors = ['#FD1F5E','#1EF9A1','#7FFD1F','#68F000'];

提交回复
热议问题