axidio-styleguide-library1-v2 0.0.833 → 0.0.834
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: 4,
|
|
8438
8438
|
};
|
|
8439
8439
|
this.uniqueId = this.getUniqueId();
|
|
8440
8440
|
this.isZoomedOut = false;
|
|
@@ -8761,7 +8761,7 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
8761
8761
|
svg
|
|
8762
8762
|
.selectAll('g.x1.axis1 g.tick text')
|
|
8763
8763
|
.attr('class', 'lib-xaxis-labels-texts-drilldown')
|
|
8764
|
-
.style('font-size', '18px')
|
|
8764
|
+
.style('font-size', this.isHeaderVisible ? '18px' : '14px')
|
|
8765
8765
|
.attr('y', this.isHeaderVisible ? short_tick_length_bg + 25 : short_tick_length_bg)
|
|
8766
8766
|
.text(function (d) {
|
|
8767
8767
|
var isValueToBeIgnored = false;
|
|
@@ -9013,10 +9013,14 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
9013
9013
|
if (d.value == -1) {
|
|
9014
9014
|
return y(0);
|
|
9015
9015
|
}
|
|
9016
|
-
if (d.value
|
|
9017
|
-
|
|
9018
|
-
|
|
9019
|
-
|
|
9016
|
+
if (d.value) {
|
|
9017
|
+
// For values between 0 and 10, position bar at baseline with default height
|
|
9018
|
+
if (d.value <= 10 && d.value >= 0) {
|
|
9019
|
+
const defaultHeight = self.chartConfiguration.defaultBarHeight || 8;
|
|
9020
|
+
return y(0) - defaultHeight;
|
|
9021
|
+
}
|
|
9022
|
+
// For values greater than 10, use normal calculated position
|
|
9023
|
+
return y(d.value);
|
|
9020
9024
|
}
|
|
9021
9025
|
return y(0);
|
|
9022
9026
|
})
|
|
@@ -9054,7 +9058,7 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
9054
9058
|
});
|
|
9055
9059
|
return self.isZoomedOut
|
|
9056
9060
|
? tempScale.bandwidth()
|
|
9057
|
-
: tempScale.bandwidth();
|
|
9061
|
+
: tempScale.bandwidth() * 0.5;
|
|
9058
9062
|
}
|
|
9059
9063
|
return self.isZoomedOut
|
|
9060
9064
|
? xSubgroup.bandwidth()
|
|
@@ -9064,10 +9068,13 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
9064
9068
|
if (d.value == -1) {
|
|
9065
9069
|
return height - y(0);
|
|
9066
9070
|
}
|
|
9067
|
-
if (d.value
|
|
9068
|
-
|
|
9069
|
-
|
|
9070
|
-
|
|
9071
|
+
if (d.value) {
|
|
9072
|
+
// For values between 0 and 10 (inclusive), use default height
|
|
9073
|
+
if (d.value <= 10 && d.value >= 0) {
|
|
9074
|
+
return self.chartConfiguration.defaultBarHeight || 8;
|
|
9075
|
+
}
|
|
9076
|
+
// For values greater than 10, use calculated height
|
|
9077
|
+
return height - y(d.value);
|
|
9071
9078
|
}
|
|
9072
9079
|
return height - y(0);
|
|
9073
9080
|
})
|
|
@@ -9365,8 +9372,8 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
9365
9372
|
return metaData.colors[d.key];
|
|
9366
9373
|
})
|
|
9367
9374
|
.attr('width', self.isZoomedOut
|
|
9368
|
-
? xSubgroup.bandwidth()
|
|
9369
|
-
: xSubgroup.bandwidth()
|
|
9375
|
+
? xSubgroup.bandwidth()
|
|
9376
|
+
: xSubgroup.bandwidth())
|
|
9370
9377
|
.text(function (d) {
|
|
9371
9378
|
return d.value;
|
|
9372
9379
|
});
|