axidio-styleguide-library1-v2 0.7.30 → 0.7.31
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.
|
@@ -8289,14 +8289,6 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
8289
8289
|
currentText.text(trimmed);
|
|
8290
8290
|
}
|
|
8291
8291
|
}
|
|
8292
|
-
else if (isDateString && data.length <= 8) {
|
|
8293
|
-
// NEW: For date strings with few bars, ensure proper spacing
|
|
8294
|
-
const currentText = d3.select(this);
|
|
8295
|
-
currentText
|
|
8296
|
-
.style('font-size', '11px')
|
|
8297
|
-
.style('text-anchor', 'middle')
|
|
8298
|
-
.attr('y', 10); // Add some breathing room
|
|
8299
|
-
}
|
|
8300
8292
|
});
|
|
8301
8293
|
}
|
|
8302
8294
|
// Mobile/tablet override - check for single-group date charts first
|
|
@@ -8333,7 +8325,7 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
8333
8325
|
else if (labelCount >= 3) {
|
|
8334
8326
|
// For more than 3 labels, use vertical alignment
|
|
8335
8327
|
textNodes
|
|
8336
|
-
|
|
8328
|
+
.style('writing-mode', 'sideways-lr') // Vertical text
|
|
8337
8329
|
.classed('mobile-xaxis-override', true) // Add vertical class
|
|
8338
8330
|
.attr('text-anchor', 'middle') // Center align
|
|
8339
8331
|
.attr('y', 30) // Adjust vertical position
|