Skip to content

Commit 98cb553

Browse files
authored
Auto: given bar, use cell over rect when no reducer (#1674)
* given bar, use cell over rect when no reducer * lint * test output
1 parent 16c75f4 commit 98cb553

File tree

3 files changed

+744
-1
lines changed

3 files changed

+744
-1
lines changed

src/marks/auto.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,9 @@ export function autoSpec(data, options) {
131131
? rectX
132132
: yReduce != null
133133
? rectY
134-
: rect;
134+
: colorReduce != null
135+
? rect
136+
: cell;
135137
colorMode = "fill";
136138
break;
137139
default:

0 commit comments

Comments
 (0)