Skip to content

Commit

Permalink
fix colour settings of BeforeLabel and BeforeBody
Browse files Browse the repository at this point in the history
  • Loading branch information
Rittyan committed Sep 22, 2017
1 parent 52145de commit b159325
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/core.tooltip.js
Expand Up @@ -677,13 +677,17 @@ module.exports = function(Chart) {
};

// Before body lines
ctx.fillStyle = mergeOpacity(vm.bodyFontColor, opacity);
helpers.each(vm.beforeBody, fillLineOfText);

var drawColorBoxes = vm.displayColors;
xLinePadding = drawColorBoxes ? (bodyFontSize + 2) : 0;

// Draw body lines now
helpers.each(body, function(bodyItem, i) {
var labelTextColor = mergeOpacity(vm.labelTextColors[i], opacity);

ctx.fillStyle = labelTextColor;
helpers.each(bodyItem.before, fillLineOfText);

helpers.each(bodyItem.lines, function(line) {
Expand Down

0 comments on commit b159325

Please sign in to comment.