0๐
โ
I found the solution.
I have to specify the colors outside of the datasets like the following:
this.realTimeUsage.Colors = [
{
backgroundColor: ["rgba(255, 165, 0, 1)"]
},
{
backgroundColor: ["rgba(171, 219, 0, 1)"]
},
{
backgroundColor: ["rgba(253, 216, 53, 1)"]
}
];
Source:stackexchange.com