diff --git a/src/marks/auto.js b/src/marks/auto.js
index 0cb576a25b..b53c632ef0 100644
--- a/src/marks/auto.js
+++ b/src/marks/auto.js
@@ -131,7 +131,9 @@ export function autoSpec(data, options) {
? rectX
: yReduce != null
? rectY
- : rect;
+ : colorReduce != null
+ ? rect
+ : cell;
colorMode = "fill";
break;
default:
diff --git a/test/output/autoBarNoReducer.svg b/test/output/autoBarNoReducer.svg
new file mode 100644
index 0000000000..81e595ffbc
--- /dev/null
+++ b/test/output/autoBarNoReducer.svg
@@ -0,0 +1,736 @@
+
\ No newline at end of file
diff --git a/test/plots/autoplot.ts b/test/plots/autoplot.ts
index a5a63c169c..0b876f3326 100644
--- a/test/plots/autoplot.ts
+++ b/test/plots/autoplot.ts
@@ -259,3 +259,8 @@ export async function autoChannels() {
const athletes = await d3.csv("data/athletes.csv", d3.autoType);
return Plot.auto(athletes, {x: Plot.valueof(athletes, "height"), y: Plot.valueof(athletes, "sport")}).plot();
}
+
+export async function autoBarNoReducer() {
+ const simpsons = await d3.csv("data/simpsons.csv", d3.autoType);
+ return Plot.auto(simpsons, {x: "season", y: "number_in_season", color: "imdb_rating", mark: "bar"}).plot();
+}