From: Jukka Kurkela Date: Sat, 20 Feb 2021 18:56:50 +0000 (+0200) Subject: Stop reading fixedStepSize from tick options (#8466) X-Git-Tag: v3.0.0-beta.12~42 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=57c8027e7cd00110e1ebde7ecce9b10c5b0ef2a5;p=thirdparty%2FChart.js.git Stop reading fixedStepSize from tick options (#8466) --- diff --git a/docs/docs/getting-started/v3-migration.md b/docs/docs/getting-started/v3-migration.md index 721d54575..c96159541 100644 --- a/docs/docs/getting-started/v3-migration.md +++ b/docs/docs/getting-started/v3-migration.md @@ -225,6 +225,7 @@ Animation system was completely rewritten in Chart.js v3. Each property can now #### Ticks * `options.gridLines.tickMarkLength` was renamed to `options.gridLines.tickLength`. +* `options.ticks.fixedStepSize` is no longer used. Use `options.ticks.stepSize`. * `options.ticks.major` and `options.ticks.minor` were replaced with scriptable options for tick fonts. * `Chart.Ticks.formatters.linear` was renamed to `Chart.Ticks.formatters.numeric`. diff --git a/src/scales/scale.linearbase.js b/src/scales/scale.linearbase.js index 54628a5fc..9c669aa62 100644 --- a/src/scales/scale.linearbase.js +++ b/src/scales/scale.linearbase.js @@ -1,4 +1,4 @@ -import {isNullOrUndef, valueOrDefault} from '../helpers/helpers.core'; +import {isNullOrUndef} from '../helpers/helpers.core'; import {almostEquals, almostWhole, log10, _decimalPlaces, _setMinAndMaxByKey, sign} from '../helpers/helpers.math'; import Scale from '../core/core.scale'; import {formatNumber} from '../core/core.intl'; @@ -200,7 +200,7 @@ export default class LinearScaleBase extends Scale { min: opts.min, max: opts.max, precision: tickOpts.precision, - stepSize: valueOrDefault(tickOpts.fixedStepSize, tickOpts.stepSize) + stepSize: tickOpts.stepSize }; const ticks = generateTicks(numericGeneratorOptions, me);