diff --git a/src/core/core.interaction.js b/src/core/core.interaction.js index 77780e0d8d2..797dca4cd87 100644 --- a/src/core/core.interaction.js +++ b/src/core/core.interaction.js @@ -52,7 +52,7 @@ function evaluateAllVisibleItems(chart, handler) { function binarySearch(metaset, axis, value, intersect) { const {controller, data, _sorted} = metaset; const iScale = controller._cachedMeta.iScale; - if (iScale && axis === iScale.axis && _sorted) { + if (iScale && axis === iScale.axis && _sorted && data.length) { const lookupMethod = iScale._reversePixels ? _rlookup : _lookup; if (!intersect) { return lookupMethod(data, axis, value);