From 9418f9727fa3f00b5fc2ed840641468a08117e6d Mon Sep 17 00:00:00 2001 From: "v.terekhov" Date: Mon, 1 Aug 2022 13:32:13 +0400 Subject: [PATCH] fix: update getStartAndCountOFVisiblePoints helper code --- src/helpers/helpers.extras.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;