axidio-styleguide-library1-v2 0.0.822 → 0.0.823
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.
|
@@ -8765,10 +8765,8 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
8765
8765
|
.text(function (d) {
|
|
8766
8766
|
var isValueToBeIgnored = false;
|
|
8767
8767
|
if (isMobile) {
|
|
8768
|
-
let
|
|
8769
|
-
|
|
8770
|
-
return trmLabel.substring(0, 3).toLowerCase();
|
|
8771
|
-
}
|
|
8768
|
+
let firstPart = d.split(/[\s\-]+/)[0];
|
|
8769
|
+
return firstPart.substring(0, 3).toLowerCase();
|
|
8772
8770
|
}
|
|
8773
8771
|
data.map((indiv) => {
|
|
8774
8772
|
if (indiv.name.toLowerCase() == d.trim().toLowerCase() &&
|
|
@@ -8788,21 +8786,23 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
8788
8786
|
}
|
|
8789
8787
|
return d.toLowerCase();
|
|
8790
8788
|
});
|
|
8791
|
-
|
|
8792
|
-
|
|
8793
|
-
|
|
8794
|
-
|
|
8795
|
-
|
|
8796
|
-
|
|
8797
|
-
|
|
8798
|
-
|
|
8799
|
-
|
|
8800
|
-
|
|
8801
|
-
|
|
8802
|
-
|
|
8803
|
-
|
|
8804
|
-
|
|
8805
|
-
|
|
8789
|
+
if (!isMobile) {
|
|
8790
|
+
svg
|
|
8791
|
+
.selectAll('g.x1.axis1 g.tick')
|
|
8792
|
+
.filter(function (d) {
|
|
8793
|
+
return !/\d{2,4}[-\/]/.test(d); // Only process non-date labels
|
|
8794
|
+
})
|
|
8795
|
+
.append('text')
|
|
8796
|
+
.attr('class', 'lib-xaxis-labels-texts-drilldown')
|
|
8797
|
+
.attr('y', long_tick_length_bg)
|
|
8798
|
+
.attr('fill', 'var(--chart-text-color)')
|
|
8799
|
+
.text(function (d) {
|
|
8800
|
+
if (d.trim().indexOf(' ') > -1) {
|
|
8801
|
+
return d.trim().substring(d.indexOf(' '), d.length).toLowerCase();
|
|
8802
|
+
}
|
|
8803
|
+
return '';
|
|
8804
|
+
});
|
|
8805
|
+
}
|
|
8806
8806
|
}
|
|
8807
8807
|
if (isMobile && !this.isHeaderVisible) {
|
|
8808
8808
|
svg
|