axidio-styleguide-library1-v2 0.0.950 → 0.0.952
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.
|
@@ -8836,9 +8836,7 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
8836
8836
|
})
|
|
8837
8837
|
.text(function (d) {
|
|
8838
8838
|
var isValueToBeIgnored = false;
|
|
8839
|
-
|
|
8840
|
-
const shouldTruncate = (isMobile && !self.isHeaderVisible) || (isria && self.chartData.data.length > 8);
|
|
8841
|
-
if (shouldTruncate) {
|
|
8839
|
+
if (isMobile && !self.isHeaderVisible) {
|
|
8842
8840
|
let firstPart = d.split(/[\s\-]+/)[0];
|
|
8843
8841
|
return firstPart.substring(0, 3).toLowerCase();
|
|
8844
8842
|
}
|
|
@@ -8894,11 +8892,19 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
8894
8892
|
});
|
|
8895
8893
|
}
|
|
8896
8894
|
}
|
|
8897
|
-
if (
|
|
8895
|
+
if (isMobile && !this.isHeaderVisible) {
|
|
8898
8896
|
svg
|
|
8899
8897
|
.selectAll('g.x1.axis1 g.tick text')
|
|
8900
8898
|
.classed('mobile-xaxis-override', true);
|
|
8901
8899
|
}
|
|
8900
|
+
if (isria && self.chartData.data.length > 8) {
|
|
8901
|
+
svg
|
|
8902
|
+
.selectAll('g.x1.axis1 g.tick text')
|
|
8903
|
+
.classed('mobile-xaxis-override', true)
|
|
8904
|
+
.text(function (d) {
|
|
8905
|
+
return d.substring(0, 3);
|
|
8906
|
+
});
|
|
8907
|
+
}
|
|
8902
8908
|
/**y scale for left y axis */
|
|
8903
8909
|
var y = d3.scaleLinear().rangeRound([height, 0]);
|
|
8904
8910
|
var maxValue = d3.max(data, (d) => d3.max(keyList, (key) => +d[key]));
|