Closed adiq closed 4 years ago
Chart.js supports gradient as background color. Unfortunately it's not working while using tc-angular-chartjs.
The problem here is angular.copy which does not maintain [object CanvasGradient] and put [object Object] instead.
angular.copy
[object CanvasGradient]
[object Object]
https://github.com/carlcraig/tc-angular-chartjs/blob/master/src/tc-angular-chartjs.js#L119 https://github.com/chartjs/Chart.js/blob/b92b256872e9d01ef56c9b8d4440cda784662fe0/src/core/core.helpers.js#L922
It would be mistake to relay on angular to fix this issue, so it would be good idea to replace this helper.
Closing due to lack of activity.
Chart.js supports gradient as background color. Unfortunately it's not working while using tc-angular-chartjs.
The problem here is
angular.copy
which does not maintain[object CanvasGradient]
and put[object Object]
instead.https://github.com/carlcraig/tc-angular-chartjs/blob/master/src/tc-angular-chartjs.js#L119 https://github.com/chartjs/Chart.js/blob/b92b256872e9d01ef56c9b8d4440cda784662fe0/src/core/core.helpers.js#L922
It would be mistake to relay on angular to fix this issue, so it would be good idea to replace this helper.