Skip to content

Commit 0e897b5

Browse files
author
Domino987
committed
improve fitlering of hover data
1 parent aee42e0 commit 0e897b5

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
@@ -813,7 +813,10 @@ function hoverDataKey(d) {
813813

814814
var EXTRA_STRING_REGEX = /<extra>([\s\S]*)<\/extra>/;
815815

816-
function createHoverText(hoverData, opts, gd) {
816+
function createHoverText(allHoverData, opts, gd) {
817+
var hoverData = allHoverData.filter(function(d) {
818+
return d.hoverinfo !== 'none';
819+
});
817820
var fullLayout = gd._fullLayout;
818821
var hovermode = opts.hovermode;
819822
var rotateLabels = opts.rotateLabels;

0 commit comments

Comments
 (0)