fix cal_heatmap tips location error (#5480) (#5587)

* fix cal_heatmap tips location error

* fix graph-legend
This commit is contained in:
Narcissus7 2018-08-13 11:44:54 +08:00 committed by Maxime Beauchemin
parent d1ef81f102
commit 7d61eea604
1 changed files with 2 additions and 2 deletions

View File

@ -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();