Skip to content

Commit 8d95f05

Browse files
committed
axis information is already included in hovertemplate
1 parent 369c9d6 commit 8d95f05

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/components/fx/hover.js

-6
Original file line numberDiff line numberDiff line change
@@ -676,12 +676,6 @@ function _hover(gd, evt, subplot, noHoverEvent) {
676676
hoverData[itemnum].hovertemplate = ht || pt.trace.hovertemplate || false;
677677
hoverData[itemnum].eventData = [eventData];
678678

679-
// Add axis information to eventData if hovertemplate
680-
if(hoverData[itemnum].hovertemplate) {
681-
eventData.xaxis = gd._fullLayout[pt.trace.xaxis + 'axis'];
682-
eventData.yaxis = gd._fullLayout[pt.trace.yaxis + 'axis'];
683-
}
684-
685679
newhoverdata.push(eventData);
686680
}
687681

0 commit comments

Comments
 (0)