axidio-styleguide-library1-v2 0.0.903 → 0.0.904
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.
|
@@ -8515,7 +8515,7 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
8515
8515
|
const isMobile = window.innerWidth < 576;
|
|
8516
8516
|
const isTablet = window.innerWidth >= 576 && window.innerWidth < 992;
|
|
8517
8517
|
const isDesktop = window.innerWidth >= 992;
|
|
8518
|
-
|
|
8518
|
+
let isria = this.customChartConfiguration.isRia;
|
|
8519
8519
|
var x;
|
|
8520
8520
|
var alternate_text = false;
|
|
8521
8521
|
var short_tick_length = 4;
|
|
@@ -8807,10 +8807,14 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
8807
8807
|
})
|
|
8808
8808
|
.text(function (d) {
|
|
8809
8809
|
var isValueToBeIgnored = false;
|
|
8810
|
-
if (
|
|
8810
|
+
if (isMobile && !self.isHeaderVisible) {
|
|
8811
8811
|
let firstPart = d.split(/[\s\-]+/)[0];
|
|
8812
8812
|
return firstPart.substring(0, 3).toLowerCase();
|
|
8813
8813
|
}
|
|
8814
|
+
if (isria && self.chartData.data.length > 8) {
|
|
8815
|
+
let firstPart = d.split(/[\s\-]+/)[0];
|
|
8816
|
+
return firstPart.substring(0, 4).toLowerCase();
|
|
8817
|
+
}
|
|
8814
8818
|
data.map((indiv) => {
|
|
8815
8819
|
if (indiv.name.toLowerCase() == d.trim().toLowerCase() &&
|
|
8816
8820
|
indiv[metaData.keyList[0]] == -1) {
|
|
@@ -8829,7 +8833,7 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
8829
8833
|
}
|
|
8830
8834
|
return d.toLowerCase();
|
|
8831
8835
|
});
|
|
8832
|
-
if (!isMobile
|
|
8836
|
+
if (!isMobile) {
|
|
8833
8837
|
svg
|
|
8834
8838
|
.selectAll('g.x1.axis1 g.tick')
|
|
8835
8839
|
.filter(function (d) {
|
|
@@ -8853,7 +8857,7 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
8853
8857
|
});
|
|
8854
8858
|
}
|
|
8855
8859
|
}
|
|
8856
|
-
if (
|
|
8860
|
+
if (isMobile && !this.isHeaderVisible) {
|
|
8857
8861
|
svg
|
|
8858
8862
|
.selectAll('g.x1.axis1 g.tick text')
|
|
8859
8863
|
.classed('mobile-xaxis-override', true);
|