axidio-styleguide-library1-v2 0.3.40 → 0.3.42
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.
|
@@ -7866,12 +7866,13 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
7866
7866
|
const isDateString = /^\d{1,4}[-\/]\d{1,2}[-\/]\d{1,4}$/.test(text) || // e.g. 2025-10-29 or 10/29/2025
|
|
7867
7867
|
/^(\d{1,4}[-\/]\d{1,2}[-\/]\d{1,4})\s*[-–]\s*(\d{1,4}[-\/]\d{1,2}[-\/]\d{1,4})$/.test(text);
|
|
7868
7868
|
if (!isDateString && text.length > 10) {
|
|
7869
|
-
const trimmed = text.slice(0,
|
|
7869
|
+
const trimmed = text.slice(0, 9) + '…';
|
|
7870
7870
|
textNodes
|
|
7871
7871
|
.attr('text-anchor', 'middle')
|
|
7872
7872
|
.attr('y', 25)
|
|
7873
7873
|
.attr('x', 0)
|
|
7874
|
-
.text(trimmed)
|
|
7874
|
+
.text(trimmed)
|
|
7875
|
+
.style('writing-mode', 'horizontal-tb');
|
|
7875
7876
|
}
|
|
7876
7877
|
});
|
|
7877
7878
|
}
|