From 4c351419b1a36af34ffd30ae0036cf81a979afeb Mon Sep 17 00:00:00 2001 From: carlosjln Date: Tue, 21 May 2013 17:04:15 -0400 Subject: [PATCH] fix: allow 'hit points' to inherit the same fillStyle of the series it belongs to. --- js/plugins/hit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/plugins/hit.js b/js/plugins/hit.js index 696af05a..ebe4152c 100644 --- a/js/plugins/hit.js +++ b/js/plugins/hit.js @@ -79,7 +79,7 @@ Flotr.addPlugin('hit', { octx.save(); octx.lineWidth = (s.points ? s.points.lineWidth : 1); octx.strokeStyle = s.mouse.lineColor; - octx.fillStyle = this.processColor(s.mouse.fillColor || '#ffffff', {opacity: s.mouse.fillOpacity}); + octx.fillStyle = this.processColor(s.mouse.fillColor || s.color, {opacity: s.mouse.fillOpacity}); octx.translate(this.plotOffset.left, this.plotOffset.top); if (!this.hit.executeOnType(s, 'drawHit', n)) {