Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 69997b1

Browse files
committed
or instead of and in showCommonLabel logic
1 parent b6df8ab commit 69997b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plots/cartesian/graph_interact.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -778,7 +778,7 @@ function createHoverText(hoverData, opts) {
778778
var i, traceHoverinfo;
779779
for (i = 0; i < hoverData.length; i++) {
780780
traceHoverinfo = hoverData[i].trace.hoverinfo;
781-
if (traceHoverinfo.indexOf('all')===-1 &&
781+
if (traceHoverinfo.indexOf('all')===-1 ||
782782
traceHoverinfo.indexOf(hovermode)===-1) {
783783
showCommonLabel = false;
784784
break;

0 commit comments

Comments
 (0)