axidio-styleguide-library1-v2 0.0.834 → 0.0.836
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.
|
@@ -8434,7 +8434,7 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
8434
8434
|
isDisplayBarDetailsAtBottom: undefined,
|
|
8435
8435
|
howmanyBarDetailsToDisplay: 0,
|
|
8436
8436
|
barVauleColor: undefined,
|
|
8437
|
-
defaultBarHeight:
|
|
8437
|
+
defaultBarHeight: 2,
|
|
8438
8438
|
};
|
|
8439
8439
|
this.uniqueId = this.getUniqueId();
|
|
8440
8440
|
this.isZoomedOut = false;
|
|
@@ -8948,7 +8948,8 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
8948
8948
|
.enter()
|
|
8949
8949
|
.append('g')
|
|
8950
8950
|
.attr('transform', function (d) {
|
|
8951
|
-
|
|
8951
|
+
let shift = (self.chartData.data.length > 8) ? -30 : 0;
|
|
8952
|
+
return 'translate(' + (x(d.name) + shift) + ',0)';
|
|
8952
8953
|
});
|
|
8953
8954
|
state
|
|
8954
8955
|
.selectAll('rect')
|
|
@@ -9013,14 +9014,10 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
9013
9014
|
if (d.value == -1) {
|
|
9014
9015
|
return y(0);
|
|
9015
9016
|
}
|
|
9016
|
-
if (d.value) {
|
|
9017
|
-
|
|
9018
|
-
|
|
9019
|
-
|
|
9020
|
-
return y(0) - defaultHeight;
|
|
9021
|
-
}
|
|
9022
|
-
// For values greater than 10, use normal calculated position
|
|
9023
|
-
return y(d.value);
|
|
9017
|
+
if (d.value >= 0) {
|
|
9018
|
+
const barHeight = height - y(d.value);
|
|
9019
|
+
const minHeight = self.chartConfiguration.defaultBarHeight || 2;
|
|
9020
|
+
return barHeight < minHeight ? y(0) - minHeight : y(d.value);
|
|
9024
9021
|
}
|
|
9025
9022
|
return y(0);
|
|
9026
9023
|
})
|
|
@@ -9058,23 +9055,24 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
9058
9055
|
});
|
|
9059
9056
|
return self.isZoomedOut
|
|
9060
9057
|
? tempScale.bandwidth()
|
|
9061
|
-
:
|
|
9058
|
+
: self.chartData.data.length && self.chartData.data.length > 8
|
|
9059
|
+
? tempScale.bandwidth() * 0.5
|
|
9060
|
+
: tempScale.bandwidth();
|
|
9062
9061
|
}
|
|
9063
9062
|
return self.isZoomedOut
|
|
9064
|
-
?
|
|
9065
|
-
:
|
|
9063
|
+
? tempScale.bandwidth()
|
|
9064
|
+
: self.chartData.data.length && self.chartData.data.length > 8
|
|
9065
|
+
? tempScale.bandwidth() * 0.5
|
|
9066
|
+
: tempScale.bandwidth();
|
|
9066
9067
|
})
|
|
9067
9068
|
.attr('height', function (d) {
|
|
9068
9069
|
if (d.value == -1) {
|
|
9069
9070
|
return height - y(0);
|
|
9070
9071
|
}
|
|
9071
|
-
if (d.value) {
|
|
9072
|
-
|
|
9073
|
-
|
|
9074
|
-
|
|
9075
|
-
}
|
|
9076
|
-
// For values greater than 10, use calculated height
|
|
9077
|
-
return height - y(d.value);
|
|
9072
|
+
if (d.value >= 0) {
|
|
9073
|
+
const barHeight = height - y(d.value);
|
|
9074
|
+
const minHeight = self.chartConfiguration.defaultBarHeight || 2;
|
|
9075
|
+
return Math.max(barHeight, minHeight);
|
|
9078
9076
|
}
|
|
9079
9077
|
return height - y(0);
|
|
9080
9078
|
})
|