diff --git a/src/compile/selection/scales.ts b/src/compile/selection/scales.ts index d716bfa20e..ec68192b5e 100644 --- a/src/compile/selection/scales.ts +++ b/src/compile/selection/scales.ts @@ -28,6 +28,10 @@ const scaleBindings: SelectionCompiler<'interval'> = { const scale = model.getScaleComponent(channel); const scaleType = scale ? scale.get('type') : undefined; + if (scaleType == 'sequential') { + log.warn(log.message.SEQUENTIAL_SCALE_DEPRECATED); + } + if (!scale || !hasContinuousDomain(scaleType)) { log.warn(log.message.SCALE_BINDINGS_CONTINUOUS); continue; diff --git a/src/log/message.ts b/src/log/message.ts index 4f2cfd11d3..7d6826930e 100644 --- a/src/log/message.ts +++ b/src/log/message.ts @@ -82,6 +82,9 @@ export function selectionNotFound(name: string) { export const SCALE_BINDINGS_CONTINUOUS = 'Scale bindings are currently only supported for scales with unbinned, continuous domains.'; +export const SEQUENTIAL_SCALE_DEPRECATED = + 'Sequntial scales are deprecated. The available quantitative scale type values are linear, log, pow, sqrt, symlog, time and utc'; + export const LEGEND_BINDINGS_MUST_HAVE_PROJECTION = 'Legend bindings are only supported for selections over an individual field or encoding channel.'; export function cannotLookupVariableParameter(name: string) {