Skip to content

Commit c52953d

Browse files
committed
do not display points with none hoverinfo in unified modes
1 parent b0eb6db commit c52953d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Diff for: src/components/fx/hover.js

+5-2
Original file line numberDiff line numberDiff line change
@@ -1049,10 +1049,13 @@ function createHoverText(hoverData, opts, gd) {
10491049
// prepare items for the legend
10501050
mockLegend.entries = [];
10511051
for(var j = 0; j < hoverData.length; j++) {
1052-
var texts = getHoverLabelText(hoverData[j], true, hovermode, fullLayout, t0);
1052+
var pt = hoverData[j];
1053+
if(pt.hoverinfo === 'none') continue;
1054+
1055+
var texts = getHoverLabelText(pt, true, hovermode, fullLayout, t0);
10531056
var text = texts[0];
10541057
var name = texts[1];
1055-
var pt = hoverData[j];
1058+
10561059
pt.name = name;
10571060
if(name !== '') {
10581061
pt.text = name + ' : ' + text;

0 commit comments

Comments
 (0)