Skip to content

Commit d2db27d

Browse files
authored
Skip "hoverinfo": "none"
1 parent bbeeda9 commit d2db27d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/components/fx/hover.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -772,7 +772,10 @@ function _hover(gd, evt, subplot, noHoverEvent) {
772772
hoverdistance: fullLayout.hoverdistance
773773
};
774774

775-
var hoverLabels = createHoverText(hoverData, labelOpts, gd);
775+
var actualHoverData = hoverData.filter(function(d) {
776+
return d.hoverinfo !== 'none';
777+
});
778+
var hoverLabels = createHoverText(actualHoverData, labelOpts, gd);
776779

777780
if(!helpers.isUnifiedHover(hovermode)) {
778781
hoverAvoidOverlaps(hoverLabels, rotateLabels ? 'xa' : 'ya', fullLayout);

0 commit comments

Comments
 (0)