axidio-styleguide-library1-v2 0.2.78 → 0.2.80
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.
|
@@ -7793,7 +7793,7 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
7793
7793
|
// Dynamically adjust Y translation for mobile
|
|
7794
7794
|
let translateY = height;
|
|
7795
7795
|
if (isMobile) {
|
|
7796
|
-
translateY = height +
|
|
7796
|
+
translateY = height + 26; // Add extra space at the top for mobile
|
|
7797
7797
|
}
|
|
7798
7798
|
svg.append('g')
|
|
7799
7799
|
.attr('class', 'x1 axis1')
|
|
@@ -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];
|