Skip to content

Commit cd1f39e

Browse files
committed
fix split mode hover (remove outdated logic)
1 parent ec46856 commit cd1f39e

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/traces/ohlc/hover.js

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -99,17 +99,6 @@ function hoverSplit(pointData, xval, yval, hovermode) {
9999
// skip the rest (for this trace) if we didn't find a close point
100100
if(!closestPoint) return [];
101101

102-
var cdIndex = closestPoint.index;
103-
var di = cd[cdIndex];
104-
var hoverinfo = di.hi || trace.hoverinfo;
105-
var hoverParts = hoverinfo.split('+');
106-
var isAll = hoverinfo === 'all';
107-
var hasY = isAll || hoverParts.indexOf('y') !== -1;
108-
109-
// similar to hoverOnPoints, we return nothing
110-
// if all or y is not present.
111-
if(!hasY) return [];
112-
113102
var attrs = ['high', 'open', 'close', 'low'];
114103

115104
// several attributes can have the same y-coordinate. We will

0 commit comments

Comments
 (0)