axidio-styleguide-library1-v2 0.0.838 → 0.0.840
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 -25; // 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 -25; // 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,12 +8962,7 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
8948
8962
|
.enter()
|
|
8949
8963
|
.append('g')
|
|
8950
8964
|
.attr('transform', function (d) {
|
|
8951
|
-
|
|
8952
|
-
let shift;
|
|
8953
|
-
if (self.chartData.data.length > 8 && !self.isZoomedOut) {
|
|
8954
|
-
shift = x_value / 2;
|
|
8955
|
-
}
|
|
8956
|
-
return 'translate(' + shift + ',0)';
|
|
8965
|
+
return 'translate(' + x(d.name) + ',0)';
|
|
8957
8966
|
});
|
|
8958
8967
|
state
|
|
8959
8968
|
.selectAll('rect')
|
|
@@ -9373,9 +9382,7 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
9373
9382
|
.style('fill', function (d) {
|
|
9374
9383
|
return metaData.colors[d.key];
|
|
9375
9384
|
})
|
|
9376
|
-
.attr('width', self.isZoomedOut
|
|
9377
|
-
? xSubgroup.bandwidth()
|
|
9378
|
-
: xSubgroup.bandwidth())
|
|
9385
|
+
.attr('width', self.isZoomedOut ? xSubgroup.bandwidth() : xSubgroup.bandwidth())
|
|
9379
9386
|
.text(function (d) {
|
|
9380
9387
|
return d.value;
|
|
9381
9388
|
});
|
|
@@ -9595,7 +9602,8 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
9595
9602
|
}
|
|
9596
9603
|
if (metaData.xLabel) {
|
|
9597
9604
|
function isAcronym(label) {
|
|
9598
|
-
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)));
|
|
9599
9607
|
}
|
|
9600
9608
|
const xLabelText = metaData.xLabel;
|
|
9601
9609
|
const isAcr = isAcronym(xLabelText.replace(/[^A-Za-z]/g, ''));
|