FloatBar: update range only for value scale (#7634)

This commit is contained in:
Jukka Kurkela
2020-07-16 20:31:11 +03:00
committed by GitHub
parent dc5f88b620
commit bc27b522c0

View File

@@ -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);