This question is about angular-chartjs 1.1.1.
First of all I wanted to disable the hover color on charts. I already set the following options to false:
tooltips: {
enabled: false
},
hover: {
enabled: false
},
This does not work so I decided to change the colors of my doughnut chart, including the highlightColor
. To set the colors I added the directive chart-colors="colors"
to my canvas. To my scope I added the following:
$scope.colors = [{
fill: true,
backgroundColor: ["#FF6384","#36A2EB"]
}]
I also tried the following:
$scope.colors = [{
fill: true,
backgroundColor: "#FF6384"
},{
fill: true,
backgroundColor: "#36A2EB"
}]
Both code snippets are not working. They just turn my Chart partly to grey, but not the specified colors. Only the following code changed my chart colors:
$scope.colors = ["#FF6384","#36A2EB"]
This will only change the backgroundColor
, but I want to change the highlightColor
too, so this solution is no option for me. Anyone have an idea how I can set the backgroundColor
and the hightlightColor
of the Chart?