From afa483d59c212ff3da041f182bb2307afbeed99f Mon Sep 17 00:00:00 2001 From: Luc Patiny Date: Tue, 12 Nov 2024 09:33:25 +0100 Subject: [PATCH] fix: xyGrowingX bug --- src/xy/xyGrowingX.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xy/xyGrowingX.ts b/src/xy/xyGrowingX.ts index 6f9efd50..35abc2ea 100644 --- a/src/xy/xyGrowingX.ts +++ b/src/xy/xyGrowingX.ts @@ -11,7 +11,7 @@ export function xyGrowingX(data: DataXY): DataXY { throw new TypeError('length of x and y must be identical'); } - if (x.length < 2 || x[0] < x[x.at(-1) as number]) return data; + if (x.length < 2 || ((x[0] < x.at(-1)) as number)) return data; return { x: x.slice(0).reverse(),