Skip to content

Commit 57c8027

Browse files
authored
Stop reading fixedStepSize from tick options (#8466)
1 parent 329b826 commit 57c8027

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

docs/docs/getting-started/v3-migration.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ Animation system was completely rewritten in Chart.js v3. Each property can now
225225
#### Ticks
226226

227227
* `options.gridLines.tickMarkLength` was renamed to `options.gridLines.tickLength`.
228+
* `options.ticks.fixedStepSize` is no longer used. Use `options.ticks.stepSize`.
228229
* `options.ticks.major` and `options.ticks.minor` were replaced with scriptable options for tick fonts.
229230
* `Chart.Ticks.formatters.linear` was renamed to `Chart.Ticks.formatters.numeric`.
230231

src/scales/scale.linearbase.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {isNullOrUndef, valueOrDefault} from '../helpers/helpers.core';
1+
import {isNullOrUndef} from '../helpers/helpers.core';
22
import {almostEquals, almostWhole, log10, _decimalPlaces, _setMinAndMaxByKey, sign} from '../helpers/helpers.math';
33
import Scale from '../core/core.scale';
44
import {formatNumber} from '../core/core.intl';
@@ -200,7 +200,7 @@ export default class LinearScaleBase extends Scale {
200200
min: opts.min,
201201
max: opts.max,
202202
precision: tickOpts.precision,
203-
stepSize: valueOrDefault(tickOpts.fixedStepSize, tickOpts.stepSize)
203+
stepSize: tickOpts.stepSize
204204
};
205205
const ticks = generateTicks(numericGeneratorOptions, me);
206206

0 commit comments

Comments
 (0)