Skip to content

Commit

Permalink
put linear time scales behind a todo
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanzong committed Jan 29, 2024
1 parent 39714d6 commit 4454817
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/compile/scale/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -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';
Expand Down

0 comments on commit 4454817

Please sign in to comment.