Skip to content

Commit

Permalink
fix: prefer user-defined tickMinStep to defaultTickMinStep
Browse files Browse the repository at this point in the history
  • Loading branch information
datananda committed Dec 6, 2024
1 parent f356575 commit d4efcc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compile/axis/properties.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit d4efcc8

Please sign in to comment.