标签: angular background gulp tooltip chart.js
在Angular 5应用程序组件文件中,我创建了以下原型方法:
Chart.Tooltip.prototype.drawBackground = function(pt, vm, ctx, tooltipSize, opacity) { vm.backgroundColor = 'rgb(45,156,219)'; }
但是我现在看不到背景色。我在我的angular 5模块应用程序中使用chartjs。有人可以帮我解决我哪里错吗?