axidio-styleguide-library1-v2 0.2.78 → 0.2.79
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.
|
@@ -7962,10 +7962,10 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
7962
7962
|
// Mobile handling: keep date labels intact for single-series charts (do not trim)
|
|
7963
7963
|
if (isMobile) {
|
|
7964
7964
|
const isDateLabel = /\d{2,4}[-\/]\d{1,2}[-\/]\d{1,4}/.test(d) || !isNaN(Date.parse(d));
|
|
7965
|
-
|
|
7966
|
-
|
|
7967
|
-
|
|
7968
|
-
|
|
7965
|
+
if (isDateLabel && subgroups && subgroups.length < 3) {
|
|
7966
|
+
// For single-series charts on mobile, show full date labels (no trimming)
|
|
7967
|
+
return d;
|
|
7968
|
+
}
|
|
7969
7969
|
// If header is hidden (compact mobile), trim non-date labels as before
|
|
7970
7970
|
if (!self.isHeaderVisible) {
|
|
7971
7971
|
const firstPart = d.split(/[\s\-]+/)[0];
|