@websy/websy-designs 1.7.15 → 1.7.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -7669,15 +7669,15 @@ else {
|
|
|
7669
7669
|
// Check to see if we need to balance the min and max values
|
|
7670
7670
|
if (this.options.balancedMinMax) {
|
|
7671
7671
|
if (this.options.orientation === 'horizontal') {
|
|
7672
|
-
let biggestBottom = Math.max(Math.abs(this.options.data.bottom.min, this.options.data.bottom.max)
|
|
7672
|
+
let biggestBottom = Math.max(Math.abs(this.options.data.bottom.min), this.options.data.bottom.max)
|
|
7673
7673
|
this.options.data.bottom.min = 1 - biggestBottom
|
|
7674
7674
|
this.options.data.bottom.max = biggestBottom
|
|
7675
7675
|
}
|
|
7676
7676
|
else {
|
|
7677
|
-
let biggestLeft = Math.max(Math.abs(this.options.data.left.min, this.options.data.left.max)
|
|
7677
|
+
let biggestLeft = Math.max(Math.abs(this.options.data.left.min), this.options.data.left.max)
|
|
7678
7678
|
this.options.data.left.min = 1 - biggestLeft
|
|
7679
7679
|
this.options.data.left.max = biggestLeft
|
|
7680
|
-
let biggestRight = Math.max(Math.abs(this.options.data.right.min, this.options.data.right.max)
|
|
7680
|
+
let biggestRight = Math.max(Math.abs(this.options.data.right.min), this.options.data.right.max)
|
|
7681
7681
|
this.options.data.right.min = 1 - biggestRight
|
|
7682
7682
|
this.options.data.right.max = biggestRight
|
|
7683
7683
|
}
|
|
@@ -8483,14 +8483,14 @@ var WebsyChart = /*#__PURE__*/function () {
|
|
|
8483
8483
|
|
|
8484
8484
|
if (this.options.balancedMinMax) {
|
|
8485
8485
|
if (this.options.orientation === 'horizontal') {
|
|
8486
|
-
var biggestBottom = Math.max(Math.abs(this.options.data.bottom.min, this.options.data.bottom.max)
|
|
8486
|
+
var biggestBottom = Math.max(Math.abs(this.options.data.bottom.min), this.options.data.bottom.max);
|
|
8487
8487
|
this.options.data.bottom.min = 1 - biggestBottom;
|
|
8488
8488
|
this.options.data.bottom.max = biggestBottom;
|
|
8489
8489
|
} else {
|
|
8490
|
-
var biggestLeft = Math.max(Math.abs(this.options.data.left.min, this.options.data.left.max)
|
|
8490
|
+
var biggestLeft = Math.max(Math.abs(this.options.data.left.min), this.options.data.left.max);
|
|
8491
8491
|
this.options.data.left.min = 1 - biggestLeft;
|
|
8492
8492
|
this.options.data.left.max = biggestLeft;
|
|
8493
|
-
var biggestRight = Math.max(Math.abs(this.options.data.right.min, this.options.data.right.max)
|
|
8493
|
+
var biggestRight = Math.max(Math.abs(this.options.data.right.min), this.options.data.right.max);
|
|
8494
8494
|
this.options.data.right.min = 1 - biggestRight;
|
|
8495
8495
|
this.options.data.right.max = biggestRight;
|
|
8496
8496
|
}
|