From: Jukka Kurkela Date: Thu, 16 Jul 2020 17:31:11 +0000 (+0300) Subject: FloatBar: update range only for value scale (#7634) X-Git-Tag: v3.0.0-beta.2~36 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bc27b522c0c4227c570aa927da8346e4d596bd12;p=thirdparty%2FChart.js.git FloatBar: update range only for value scale (#7634) --- diff --git a/src/controllers/controller.bar.js b/src/controllers/controller.bar.js index 146e95e01..c2ce35d8c 100644 --- a/src/controllers/controller.bar.js +++ b/src/controllers/controller.bar.js @@ -191,7 +191,7 @@ export default class BarController extends DatasetController { updateRangeFromParsed(range, scale, parsed, stack) { super.updateRangeFromParsed(range, scale, parsed, stack); const custom = parsed._custom; - if (custom) { + if (custom && scale === this._cachedMeta.vScale) { // float bar: only one end of the bar is considered by `super` range.min = Math.min(range.min, custom.min); range.max = Math.max(range.max, custom.max);