From 50d0c980304730096a23fdaa4b2e77b95cdef25b Mon Sep 17 00:00:00 2001 From: Tanner Linsley Date: Wed, 17 Feb 2016 12:42:29 -0700 Subject: [PATCH] Tooltips now respect stacked ordering Tooltips detect the stacked scale property now, reversing when appropriate --- src/core/core.tooltip.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/core.tooltip.js b/src/core/core.tooltip.js index b99d05c87..ae3e2d58a 100644 --- a/src/core/core.tooltip.js +++ b/src/core/core.tooltip.js @@ -253,7 +253,7 @@ module.exports = function(Chart) { datasetIndex: datasetIndex }); } - }); + }, null, element._yScale.options.stacked); helpers.each(this._active, function(active) { if (active) { @@ -262,7 +262,7 @@ module.exports = function(Chart) { backgroundColor: active._view.backgroundColor }); } - }); + }, null, element._yScale.options.stacked); tooltipPosition = this.getAveragePosition(this._active); tooltipPosition.y = this._active[0]._yScale.getPixelForDecimal(0.5); @@ -609,4 +609,4 @@ module.exports = function(Chart) { } } }); -}; \ No newline at end of file +}; -- 2.47.2