axidio-styleguide-library1-v2 0.7.36 → 0.7.37

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.
@@ -7666,22 +7666,17 @@ class HorizontalBarsWithScrollZoomComponent extends ComponentUniqueId {
7666
7666
  });
7667
7667
  }
7668
7668
  applyXLabelsOnSameLine(svg) {
7669
- // svg
7670
- // .selectAll('g.x1.axis1 g.tick text')
7671
- // .attr('class', 'lib-xaxis-labels-texts-drilldown')
7672
- // .attr('y', this.CONSTANTS.SHORT_TICK_LENGTH_BG)
7673
- // .text((d: string) => {
7674
- // const trimmed = d.trim();
7675
- // const spaceIndex = trimmed.indexOf(' ');
7676
- // return spaceIndex > -1
7677
- // ? trimmed.substring(0, spaceIndex).toLowerCase()
7678
- // : trimmed.toLowerCase();
7679
- // });
7680
7669
  svg
7681
7670
  .selectAll('g.x1.axis1 g.tick text')
7682
7671
  .attr('class', 'lib-xaxis-labels-texts-drilldown')
7683
7672
  .attr('y', this.CONSTANTS.SHORT_TICK_LENGTH_BG)
7684
- .text((d) => d);
7673
+ .text((d) => {
7674
+ const trimmed = d.trim();
7675
+ const spaceIndex = trimmed.indexOf(' ');
7676
+ return spaceIndex > -1
7677
+ ? trimmed.substring(0, spaceIndex)
7678
+ : trimmed;
7679
+ });
7685
7680
  svg
7686
7681
  .selectAll('g.x1.axis1 g.tick')
7687
7682
  .append('text')