How to change colours for Angular-Chart.js

前端 未结 7 1591
误落风尘
误落风尘 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:50

    I was having the same difficulty. In the docs it says to use "colors" however once I updated my html to:

    chart-colours

    with an angular array of:

    $scope.colours = ['#72C02C', '#3498DB', '#717984', '#F1C40F'];

    It worked!

提交回复
热议问题