axidio-styleguide-library1-v2 0.7.36 → 0.7.38
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) =>
|
|
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')
|
|
@@ -7692,7 +7687,7 @@ class HorizontalBarsWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
7692
7687
|
const trimmed = d.trim();
|
|
7693
7688
|
const spaceIndex = trimmed.indexOf(' ');
|
|
7694
7689
|
return spaceIndex > -1
|
|
7695
|
-
? trimmed.substring(spaceIndex)
|
|
7690
|
+
? trimmed.substring(spaceIndex)
|
|
7696
7691
|
: '';
|
|
7697
7692
|
});
|
|
7698
7693
|
}
|