axidio-styleguide-library1-v2 0.3.62 → 0.3.64
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.
|
@@ -7776,7 +7776,7 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
7776
7776
|
// Dynamically adjust Y translation for mobile
|
|
7777
7777
|
let translateY = height;
|
|
7778
7778
|
if (isMobile) {
|
|
7779
|
-
translateY = height +
|
|
7779
|
+
translateY = height + 10; // Add extra space at the top for mobile
|
|
7780
7780
|
}
|
|
7781
7781
|
svg.append('g')
|
|
7782
7782
|
.attr('class', 'x1 axis1')
|
|
@@ -7876,7 +7876,7 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
7876
7876
|
uniqueLabels.add(d);
|
|
7877
7877
|
});
|
|
7878
7878
|
const labelCount = uniqueLabels.size;
|
|
7879
|
-
if (hasDateValues && labelCount
|
|
7879
|
+
if (hasDateValues && labelCount < 3) {
|
|
7880
7880
|
// For 3 or fewer labels, keep horizontal display
|
|
7881
7881
|
textNodes
|
|
7882
7882
|
.style('writing-mode', 'horizontal-tb') // Explicitly set horizontal
|
|
@@ -7887,7 +7887,7 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
7887
7887
|
.attr('dx', '0') // Reset any x offset
|
|
7888
7888
|
.attr('dy', '0'); // Reset any y offset
|
|
7889
7889
|
}
|
|
7890
|
-
else if (labelCount
|
|
7890
|
+
else if (labelCount >= 3) {
|
|
7891
7891
|
// For more than 3 labels, use vertical alignment
|
|
7892
7892
|
textNodes
|
|
7893
7893
|
.style('writing-mode', 'sideways-lr') // Vertical text
|