From 4454817b829bd6744952e6bb2685b99dd679cf10 Mon Sep 17 00:00:00 2001 From: Jonathan Zong Date: Mon, 29 Jan 2024 12:57:15 -0500 Subject: [PATCH] put linear time scales behind a todo --- src/compile/scale/type.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/compile/scale/type.ts b/src/compile/scale/type.ts index e4c42ec496..5397936675 100644 --- a/src/compile/scale/type.ts +++ b/src/compile/scale/type.ts @@ -117,7 +117,8 @@ function defaultType( } else if (isFieldDef(fieldDef) && fieldDef.timeUnit && normalizeTimeUnit(fieldDef.timeUnit).utc) { return 'utc'; } else if (isTime(channel)) { - return 'linear'; + // return 'linear'; + return 'band'; // TODO(jzong): when interpolation is implemented, this should be 'linear' } return 'time'; @@ -134,7 +135,8 @@ function defaultType( // TODO: consider using quantize (equivalent to binning) once we have it return 'ordinal'; } else if (isTime(channel)) { - return 'linear'; + // return 'linear'; + return 'band'; // TODO(jzong): when interpolation is implemented, this should be 'linear' } return 'linear';