Skip to content

Commit

Permalink
fix: update getStartAndCountOFVisiblePoints helper code
Browse files Browse the repository at this point in the history
  • Loading branch information
thabarbados committed Aug 1, 2022
1 parent 1215635 commit 9418f97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/helpers/helpers.extras.js
Expand Up @@ -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;
Expand Down

0 comments on commit 9418f97

Please sign in to comment.