axidio-styleguide-library1-v2 0.2.42 → 0.2.44
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.
|
@@ -9074,7 +9074,7 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
9074
9074
|
hasDateValues = true;
|
|
9075
9075
|
}
|
|
9076
9076
|
});
|
|
9077
|
-
if (hasDateValues && subgroups && subgroups.length
|
|
9077
|
+
if (hasDateValues && subgroups && subgroups.length < 3) {
|
|
9078
9078
|
// For single chart with dates, ensure horizontal display
|
|
9079
9079
|
textNodes
|
|
9080
9080
|
.style('writing-mode', 'horizontal-tb') // Explicitly set horizontal
|
|
@@ -9156,7 +9156,7 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
9156
9156
|
// Mobile handling: keep date labels intact for single-series charts (do not trim)
|
|
9157
9157
|
if (isMobile) {
|
|
9158
9158
|
const isDateLabel = /\d{2,4}[-\/]\d{1,2}[-\/]\d{1,4}/.test(d) || !isNaN(Date.parse(d));
|
|
9159
|
-
if (isDateLabel && subgroups && subgroups.length
|
|
9159
|
+
if (isDateLabel && subgroups && subgroups.length < 3) {
|
|
9160
9160
|
// For single-series charts on mobile, show full date labels (no trimming)
|
|
9161
9161
|
return d;
|
|
9162
9162
|
}
|