axidio-styleguide-library1-v2 0.0.777 → 0.0.778
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.
|
@@ -8046,7 +8046,9 @@ class HorizontalBarsWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
8046
8046
|
.attr('y', short_tick_length_bg)
|
|
8047
8047
|
.text(function (d, i) {
|
|
8048
8048
|
if (isMobile) {
|
|
8049
|
-
|
|
8049
|
+
// If label has more than one word, show only first 3 letters of first word
|
|
8050
|
+
var firstWord = d.split(' ')[0];
|
|
8051
|
+
return firstWord.substring(0, 3);
|
|
8050
8052
|
}
|
|
8051
8053
|
if (d.trim().indexOf(' ') > -1) {
|
|
8052
8054
|
return d.trim().substring(0, d.indexOf(' ')).toLowerCase();
|
|
@@ -8063,7 +8065,7 @@ class HorizontalBarsWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
8063
8065
|
return 'translate(0,0)';
|
|
8064
8066
|
}
|
|
8065
8067
|
else {
|
|
8066
|
-
return 'translate(' + (i *
|
|
8068
|
+
return 'translate(' + (i * 30) + ',0)';
|
|
8067
8069
|
}
|
|
8068
8070
|
}
|
|
8069
8071
|
return null;
|