From 665e33983d48536df88521967bc459ef629ca879 Mon Sep 17 00:00:00 2001 From: boygirl Date: Mon, 24 May 2021 10:20:25 -0700 Subject: [PATCH] use y1 for min domain check if it exists --- packages/victory-core/src/victory-util/data.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/victory-core/src/victory-util/data.js b/packages/victory-core/src/victory-util/data.js index 3770b3967..801877d9d 100644 --- a/packages/victory-core/src/victory-util/data.js +++ b/packages/victory-core/src/victory-util/data.js @@ -118,7 +118,7 @@ function formatDataFromDomain(dataset, domain, defaultBaseline) { if (isUnderMinX(_x) || isOverMaxX(_x)) _x = null; const baseline = exists(_y0) ? _y0 : defaultBaseline; - const value = exists(_y) ? _y : _y1; + const value = exists(_y1) ? _y1 : _y; if (!exists(value)) return datum;