Skip to content

Commit

Permalink
style: auto-formatting [CI]
Browse files Browse the repository at this point in the history
  • Loading branch information
GitHub Actions Bot committed Jan 25, 2025
1 parent 760cc03 commit 89b647c
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 @@ -185,10 +185,10 @@ export function stack(m: Mark | MarkDef, encoding: Encoding<string>): StackPrope
// TODO: Figure out why groupBy is only sometimes necessary?
// Unclear why the test case and the bug report differ in whether a groupBy should be supplied to vega or not
// const shouldAddPolarGroupBy = dimensionField === 'dir' || (fieldChannel === dimensionChannel);
const shouldAddPolarGroupBy = (fieldChannel === dimensionChannel);
const shouldAddPolarGroupBy = fieldChannel === dimensionChannel;

// if (!hasSameDimensionAndStackedField) {
if (!hasSameDimensionAndStackedField && (isPolar ? (shouldAddPolarGroupBy) : true)) {
if (!hasSameDimensionAndStackedField && (isPolar ? shouldAddPolarGroupBy : true)) {
// avoid grouping by the stacked field
// TKTK: find out why
groupbyChannels.push(dimensionChannel);
Expand Down

0 comments on commit 89b647c

Please sign in to comment.