Skip to content

Commit f156222

Browse files
committed
shorter error message
1 parent b77fd5e commit f156222

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/scales/ordinal.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ function inferDomain(channels, interval, key) {
123123
const [min, max] = extent(values).map(interval.floor, interval);
124124
return interval.range(min, interval.offset(max));
125125
}
126-
if (values.size > 10e3 && registry.get(key) === position) throw new Error("This position domain would have more than 10,000 ordinal values. If this is intentional, set the domain explicitly.");
126+
if (values.size > 10e3 && registry.get(key) === position) throw new Error("implicit ordinal position domain has more than 10,000 values");
127127
return sort(values, ascendingDefined);
128128
}
129129

0 commit comments

Comments
 (0)