Skip to content

Commit

Permalink
#313 enable hover point data collection even if hoverinfo is set to none
Browse files Browse the repository at this point in the history
  • Loading branch information
monfera committed Apr 17, 2016
1 parent 02e39a9 commit c8b05ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plots/cartesian/graph_interact.js
Original file line number Diff line number Diff line change
Expand Up @@ -367,14 +367,14 @@ function hover(gd, evt, subplot) {
hovermode = 'array';
for(itemnum = 0; itemnum<evt.length; itemnum++) {
cd = gd.calcdata[evt[itemnum].curveNumber||0];
if(cd[0].trace.hoverinfo!=='none') searchData.push(cd);
searchData.push(cd);
}
}
else {
for(curvenum = 0; curvenum<gd.calcdata.length; curvenum++) {
cd = gd.calcdata[curvenum];
trace = cd[0].trace;
if(trace.hoverinfo!=='none' && subplots.indexOf(getSubplot(trace))!==-1) {
if(subplots.indexOf(getSubplot(trace))!==-1) {
searchData.push(cd);
}
}
Expand Down

0 comments on commit c8b05ed

Please sign in to comment.