axidio-styleguide-library1-v2 0.6.75 → 0.6.77
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.
|
@@ -8025,6 +8025,7 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
8025
8025
|
// }
|
|
8026
8026
|
// ✅ Tablet View — Rotate if text > 10 characters
|
|
8027
8027
|
if (isTablet) {
|
|
8028
|
+
const isria = this.customChartConfiguration.isRia;
|
|
8028
8029
|
const textNodes = svg.selectAll('g.x1.axis1 g.tick text');
|
|
8029
8030
|
textNodes.each(function (d) {
|
|
8030
8031
|
const text = d ? d.toString().trim() : '';
|
|
@@ -8034,8 +8035,10 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
8034
8035
|
if (!isDateString && text.length > 10) {
|
|
8035
8036
|
const trimmed = text.slice(0, 9) + '…';
|
|
8036
8037
|
textNodes
|
|
8037
|
-
.style('font-size', '
|
|
8038
|
-
|
|
8038
|
+
.style('font-size', '9px');
|
|
8039
|
+
if (isria) {
|
|
8040
|
+
textNodes.text(trimmed);
|
|
8041
|
+
}
|
|
8039
8042
|
}
|
|
8040
8043
|
});
|
|
8041
8044
|
}
|