We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d4f0a8a commit f132711Copy full SHA for f132711
src/scales/schemes.js
@@ -176,7 +176,7 @@ function schemeicyclical(interpolate) {
176
177
export function ordinalScheme(scheme) {
178
const s = `${scheme}`.toLowerCase();
179
- if (!ordinalSchemes.has(s)) throw new Error(`unknown scheme: ${s}`);
+ if (!ordinalSchemes.has(s)) throw new Error(`unknown ordinal scheme: ${s}`);
180
return ordinalSchemes.get(s);
181
}
182
@@ -255,7 +255,7 @@ const quantitativeSchemes = new Map([
255
256
export function quantitativeScheme(scheme) {
257
258
- if (!quantitativeSchemes.has(s)) throw new Error(`unknown scheme: ${s}`);
+ if (!quantitativeSchemes.has(s)) throw new Error(`unknown quantitative scheme: ${s}`);
259
return quantitativeSchemes.get(s);
260
261
0 commit comments