Skip to content

Commit

Permalink
Merge pull request #1863 from FormidableLabs/bug/stacked-bar-min-domain
Browse files Browse the repository at this point in the history
use y1 for min domain check if it exists
  • Loading branch information
boygirl authored May 24, 2021
2 parents 1c22460 + 665e339 commit f7eff79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/victory-core/src/victory-util/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit f7eff79

Please sign in to comment.