axidio-styleguide-library1-v2 0.0.821 → 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.
|
@@ -8764,6 +8764,10 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
8764
8764
|
.attr('y', short_tick_length_bg)
|
|
8765
8765
|
.text(function (d) {
|
|
8766
8766
|
var isValueToBeIgnored = false;
|
|
8767
|
+
if (isMobile) {
|
|
8768
|
+
let firstPart = d.split(/[\s\-]+/)[0];
|
|
8769
|
+
return firstPart.substring(0, 3).toLowerCase();
|
|
8770
|
+
}
|
|
8767
8771
|
data.map((indiv) => {
|
|
8768
8772
|
if (indiv.name.toLowerCase() == d.trim().toLowerCase() &&
|
|
8769
8773
|
indiv[metaData.keyList[0]] == -1) {
|
|
@@ -8782,21 +8786,23 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
8782
8786
|
}
|
|
8783
8787
|
return d.toLowerCase();
|
|
8784
8788
|
});
|
|
8785
|
-
|
|
8786
|
-
|
|
8787
|
-
|
|
8788
|
-
|
|
8789
|
-
|
|
8790
|
-
|
|
8791
|
-
|
|
8792
|
-
|
|
8793
|
-
|
|
8794
|
-
|
|
8795
|
-
|
|
8796
|
-
|
|
8797
|
-
|
|
8798
|
-
|
|
8799
|
-
|
|
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
|
+
}
|
|
8800
8806
|
}
|
|
8801
8807
|
if (isMobile && !this.isHeaderVisible) {
|
|
8802
8808
|
svg
|