diff --git a/src/helpers/helpers.extras.js b/src/helpers/helpers.extras.js index 686affb2787..8bab58ae182 100644 --- a/src/helpers/helpers.extras.js +++ b/src/helpers/helpers.extras.js @@ -117,8 +117,8 @@ export function _getStartAndCountOfVisiblePoints(meta, points, animationsDisable } if (maxDefined) { count = _limitValue(Math.max( - _lookupByKey(_parsed, iScale.axis, max).hi + 1, - animationsDisabled ? 0 : _lookupByKey(points, axis, iScale.getPixelForValue(max)).hi + 1), + _lookupByKey(_parsed, iScale.axis, max, true).hi + 1, + animationsDisabled ? 0 : _lookupByKey(points, axis, iScale.getPixelForValue(max), true).hi + 1), start, pointCount) - start; } else { count = pointCount - start;