I'm using the angular version of chartJS. I've a pie chart and want to specify the hover color of the arcs.
Apparently someone already managed to do that: https://github.com/jtblin/angular-chart.js/issues/131#issuecomment-246598518, but I don't understand how.
Here is my try: http://plnkr.co/edit/1irEj30D9NfRX9qu9H12?p=preview
So basically
$scope.colors = [
{
backgroundColor: '#A2DED0',
borderColor: '#A2DED0',
hoverBackgroundColor: '#A2DED0',
hoverBorderColor: '#A2DED0'
}
]
<canvas chart-colors="colors"></canvas>
The solution is to use chart-dataset-override. These examples helped me a lot: https://github.com/jtblin/angular-chart.js/blob/master/examples/dataset-override.html https://github.com/jtblin/angular-chart.js/blob/master/examples/dataset-override.js