From d4efcc883f982e1a1cad38a63e3eb22c82872419 Mon Sep 17 00:00:00 2001 From: Madeleine Filloux Date: Mon, 28 Oct 2024 15:24:21 -0700 Subject: [PATCH] fix: prefer user-defined tickMinStep to defaultTickMinStep --- src/compile/axis/properties.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compile/axis/properties.ts b/src/compile/axis/properties.ts index 5d9b5c4e9f..04ab898359 100644 --- a/src/compile/axis/properties.ts +++ b/src/compile/axis/properties.ts @@ -84,7 +84,7 @@ export const axisRules: { return axis.tickCount ?? defaultTickCount({fieldOrDatumDef, scaleType, size, values: axis.values}); }, - tickMinStep: defaultTickMinStep, + tickMinStep: ({axis, format, fieldOrDatumDef}) => axis.tickMinStep ?? defaultTickMinStep({format, fieldOrDatumDef}), title: ({axis, model, channel}) => { if (axis.title !== undefined) {