Skip to content

Commit c3312c2

Browse files
committed
add condition for hover events on pie charts
1 parent 445e80a commit c3312c2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/plots/cartesian/graph_interact.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,13 @@ fx.unhover = function (gd, evt, subplot) {
309309
// The actual implementation is here:
310310

311311
function hover(gd, evt, subplot){
312+
if(gd._fullLayout._hasPie){
313+
gd.emit('plotly_hover', {
314+
points: [evt]
315+
});
316+
return;
317+
}
318+
312319
if(!subplot) subplot = 'xy';
313320

314321
var fullLayout = gd._fullLayout,

0 commit comments

Comments
 (0)