Skip to content

Commit e172f67

Browse files
committed
Changed hover event to check if subplot === pie
1 parent 67fbda3 commit e172f67

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/plots/cartesian/graph_interact.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ fx.unhover = function (gd, evt, subplot) {
309309
// The actual implementation is here:
310310

311311
function hover(gd, evt, subplot){
312-
if(gd._fullLayout._hasPie){
312+
if(subplot === 'pie'){
313313
gd.emit('plotly_hover', {
314314
points: [evt]
315315
});

src/traces/pie/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ pie.plot = function(gd, cdpie) {
363363
}
364364
);
365365

366-
Plotly.Fx.hover(gd, evt);
366+
Plotly.Fx.hover(gd, evt, 'pie');
367367

368368
hasHoverData = true;
369369
}

0 commit comments

Comments
 (0)