axidio-styleguide-library1-v2 0.3.62 → 0.3.63
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.
|
@@ -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
|