From 48c082b04ae3ab303b6158c7bfa1bbe41cf9adf2 Mon Sep 17 00:00:00 2001 From: David Cochrum Date: Fri, 11 Mar 2016 12:19:12 -0500 Subject: [PATCH] Fix multi-dataset bar highlighting and bar highlight color logic --- Chart.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Chart.js b/Chart.js index 21edb16a8..7cdf767e3 100644 --- a/Chart.js +++ b/Chart.js @@ -2335,10 +2335,8 @@ bar.restore(['fillColor', 'strokeColor']); }); helpers.each(activeBars, function(activeBar){ - if (activeBar) { - activeBar.fillColor = activeBar.highlightFill; - activeBar.strokeColor = activeBar.highlightStroke; - } + activeBar.fillColor = activeBar.highlightFill; + activeBar.strokeColor = activeBar.highlightStroke; }); this.showTooltip(activeBars); }); @@ -3731,4 +3729,4 @@ -}).call(this); +}).call(this); \ No newline at end of file