axidio-styleguide-library1-v2 0.0.777 → 0.0.779

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
- return d.substring(0, 3);
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 * 25) + ',0)';
8068
+ return 'translate(' + (i * 30) + ',0)';
8067
8069
  }
8068
8070
  }
8069
8071
  return null;
@@ -8075,6 +8077,10 @@ class HorizontalBarsWithScrollZoomComponent extends ComponentUniqueId {
8075
8077
  .attr('y', long_tick_length_bg)
8076
8078
  .attr('fill', 'currentColor')
8077
8079
  .text(function (d) {
8080
+ // For mobile, do not print the second word at all
8081
+ if (isMobile) {
8082
+ return '';
8083
+ }
8078
8084
  if (d.trim().indexOf(' ') > -1) {
8079
8085
  return d.trim().substring(d.indexOf(' '), d.length).toLowerCase();
8080
8086
  }