axidio-styleguide-library1-v2 0.0.837 → 0.0.839
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.
|
@@ -8762,7 +8762,15 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
8762
8762
|
.selectAll('g.x1.axis1 g.tick text')
|
|
8763
8763
|
.attr('class', 'lib-xaxis-labels-texts-drilldown')
|
|
8764
8764
|
.style('font-size', this.isHeaderVisible ? '18px' : '14px')
|
|
8765
|
-
.attr('y', this.isHeaderVisible
|
|
8765
|
+
.attr('y', this.isHeaderVisible
|
|
8766
|
+
? short_tick_length_bg + 25
|
|
8767
|
+
: short_tick_length_bg)
|
|
8768
|
+
.attr('x', function (d) {
|
|
8769
|
+
if (self.chartData.data.length > 8 && !self.isZoomedOut) {
|
|
8770
|
+
return -5; // Move first line text slightly to the left too
|
|
8771
|
+
}
|
|
8772
|
+
return 0; // Default position
|
|
8773
|
+
})
|
|
8766
8774
|
.text(function (d) {
|
|
8767
8775
|
var isValueToBeIgnored = false;
|
|
8768
8776
|
if (isMobile && !self.isHeaderVisible) {
|
|
@@ -8797,6 +8805,12 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
8797
8805
|
.attr('class', 'lib-xaxis-labels-texts-drilldown')
|
|
8798
8806
|
.attr('y', long_tick_length_bg)
|
|
8799
8807
|
.attr('fill', 'var(--chart-text-color)')
|
|
8808
|
+
.attr('x', function (d) {
|
|
8809
|
+
if (self.chartData.data.length > 8 && !self.isZoomedOut) {
|
|
8810
|
+
return -5; // Move text slightly to the left
|
|
8811
|
+
}
|
|
8812
|
+
return 0; // Default position
|
|
8813
|
+
})
|
|
8800
8814
|
.text(function (d) {
|
|
8801
8815
|
if (d.trim().indexOf(' ') > -1) {
|
|
8802
8816
|
return d.trim().substring(d.indexOf(' '), d.length).toLowerCase();
|
|
@@ -8948,8 +8962,7 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
8948
8962
|
.enter()
|
|
8949
8963
|
.append('g')
|
|
8950
8964
|
.attr('transform', function (d) {
|
|
8951
|
-
|
|
8952
|
-
return 'translate(' + (x(d.name) + shift) + ',0)';
|
|
8965
|
+
return 'translate(' + x(d.name) + ',0)';
|
|
8953
8966
|
});
|
|
8954
8967
|
state
|
|
8955
8968
|
.selectAll('rect')
|
|
@@ -9369,9 +9382,7 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
9369
9382
|
.style('fill', function (d) {
|
|
9370
9383
|
return metaData.colors[d.key];
|
|
9371
9384
|
})
|
|
9372
|
-
.attr('width', self.isZoomedOut
|
|
9373
|
-
? xSubgroup.bandwidth()
|
|
9374
|
-
: xSubgroup.bandwidth())
|
|
9385
|
+
.attr('width', self.isZoomedOut ? xSubgroup.bandwidth() : xSubgroup.bandwidth())
|
|
9375
9386
|
.text(function (d) {
|
|
9376
9387
|
return d.value;
|
|
9377
9388
|
});
|
|
@@ -9591,7 +9602,8 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
9591
9602
|
}
|
|
9592
9603
|
if (metaData.xLabel) {
|
|
9593
9604
|
function isAcronym(label) {
|
|
9594
|
-
return (label.length <= 4 && /^[A-Z]+$/.test(label)) ||
|
|
9605
|
+
return ((label.length <= 4 && /^[A-Z]+$/.test(label)) ||
|
|
9606
|
+
(label === label.toUpperCase() && /[A-Z]/.test(label)));
|
|
9595
9607
|
}
|
|
9596
9608
|
const xLabelText = metaData.xLabel;
|
|
9597
9609
|
const isAcr = isAcronym(xLabelText.replace(/[^A-Za-z]/g, ''));
|