From 7d61eea6040fa195de7278551e631018e6bfd2f6 Mon Sep 17 00:00:00 2001 From: Narcissus7 <18813104077@163.com> Date: Mon, 13 Aug 2018 11:44:54 +0800 Subject: [PATCH] fix cal_heatmap tips location error (#5480) (#5587) * fix cal_heatmap tips location error * fix graph-legend --- superset/assets/vendor/cal-heatmap/cal-heatmap.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/superset/assets/vendor/cal-heatmap/cal-heatmap.js b/superset/assets/vendor/cal-heatmap/cal-heatmap.js index 0b00756cb9..0881c9a73e 100644 --- a/superset/assets/vendor/cal-heatmap/cal-heatmap.js +++ b/superset/assets/vendor/cal-heatmap/cal-heatmap.js @@ -897,7 +897,7 @@ var CalHeatMap = function() { if (options.tooltip) { selection .on("mouseover", function(d) { - self.tip.show(d); + self.tip.show(d, this); }) .on("mouseout", function() { self.tip.hide(d); @@ -3285,7 +3285,7 @@ Legend.prototype.redraw = function(width) { }); legendItem .on("mouseover", function(d) { - calendar.legendTip.show(d); + calendar.legendTip.show(d, this); }) .on("mouseout", function() { calendar.legendTip.hide();