diff --git a/src/stack.ts b/src/stack.ts index 3c1209471f..c15d981d23 100644 --- a/src/stack.ts +++ b/src/stack.ts @@ -184,7 +184,8 @@ export function stack(m: Mark | MarkDef, encoding: Encoding): 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 = dimensionField === 'dir' || (fieldChannel === dimensionChannel); + const shouldAddPolarGroupBy = (fieldChannel === dimensionChannel); // if (!hasSameDimensionAndStackedField) { if (!hasSameDimensionAndStackedField && (isPolar ? (shouldAddPolarGroupBy) : true)) {