axidio-styleguide-library1-v2 0.0.949 → 0.0.950
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,7 +8836,9 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
8836
8836
|
})
|
|
8837
8837
|
.text(function (d) {
|
|
8838
8838
|
var isValueToBeIgnored = false;
|
|
8839
|
-
if
|
|
8839
|
+
// Check if this should show truncated text (mobile or ria conditions)
|
|
8840
|
+
const shouldTruncate = (isMobile && !self.isHeaderVisible) || (isria && self.chartData.data.length > 8);
|
|
8841
|
+
if (shouldTruncate) {
|
|
8840
8842
|
let firstPart = d.split(/[\s\-]+/)[0];
|
|
8841
8843
|
return firstPart.substring(0, 3).toLowerCase();
|
|
8842
8844
|
}
|