Skip to content

Commit

Permalink
Fix tooltip hover color bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Pikamander2 committed Sep 6, 2016
1 parent e35df05 commit 0defd5c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/core.tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -592,6 +592,7 @@ module.exports = function(Chart) {
}
},
drawBody: function(pt, vm, ctx, opacity) {
var me = this;
var bodyFontSize = vm.bodyFontSize;
var bodySpacing = vm.bodySpacing;
var body = vm.body;
Expand Down Expand Up @@ -633,7 +634,7 @@ module.exports = function(Chart) {
ctx.strokeRect(pt.x, pt.y, bodyFontSize, bodyFontSize);

// Inner square
ctx.fillStyle = helpers.color(vm.labelColors[i].backgroundColor).alpha(opacity).rgbaString();
ctx.fillStyle = helpers.color(me._data.datasets[i].backgroundColor).alpha(opacity).rgbaString();
ctx.fillRect(pt.x + 1, pt.y + 1, bodyFontSize - 2, bodyFontSize - 2);

ctx.fillStyle = textColor;
Expand Down

0 comments on commit 0defd5c

Please sign in to comment.