Skip to content

Commit 9e8c3e9

Browse files
committed
fixup way to express "last pt"
1 parent 5350d4e commit 9e8c3e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/traces/scatter/line_points.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ module.exports = function linePoints(d, opts) {
392392
clusterRefDist = ptDist(clusterHighPt, clusterStartPt);
393393

394394
// #3147 - always include the very first and last points for fills
395-
if(!(fill && (pti === 0 || len - pti === 1)) &&
395+
if(!(fill && (pti === 0 || pti === len - 1)) &&
396396
clusterRefDist < getTolerance(clusterHighPt, nextPt) * minTolerance) continue;
397397

398398
clusterUnitVector = [

0 commit comments

Comments
 (0)