Skip to content

Commit c8b05ed

Browse files
committed
#313 enable hover point data collection even if hoverinfo is set to none
1 parent 02e39a9 commit c8b05ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/plots/cartesian/graph_interact.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -367,14 +367,14 @@ function hover(gd, evt, subplot) {
367367
hovermode = 'array';
368368
for(itemnum = 0; itemnum<evt.length; itemnum++) {
369369
cd = gd.calcdata[evt[itemnum].curveNumber||0];
370-
if(cd[0].trace.hoverinfo!=='none') searchData.push(cd);
370+
searchData.push(cd);
371371
}
372372
}
373373
else {
374374
for(curvenum = 0; curvenum<gd.calcdata.length; curvenum++) {
375375
cd = gd.calcdata[curvenum];
376376
trace = cd[0].trace;
377-
if(trace.hoverinfo!=='none' && subplots.indexOf(getSubplot(trace))!==-1) {
377+
if(subplots.indexOf(getSubplot(trace))!==-1) {
378378
searchData.push(cd);
379379
}
380380
}

0 commit comments

Comments
 (0)