Skip to content

Commit

Permalink
fix: don't apply stack for QxQ charts with non-linear scales
Browse files Browse the repository at this point in the history
  • Loading branch information
kanitw committed Apr 27, 2023
1 parent 50088fd commit 2ec1077
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,9 @@ function potentialStackedChannel(
const yScale = yDef.scale?.type;

if (xScale && xScale !== 'linear') {
return y;
return undefined;
} else if (yScale && yScale !== 'linear') {
return x;
return undefined;
}
}

Expand Down

0 comments on commit 2ec1077

Please sign in to comment.