axidio-styleguide-library1-v2 0.0.944 → 0.0.946
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.
|
@@ -8809,11 +8809,19 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
8809
8809
|
.attr('y', function (d) {
|
|
8810
8810
|
// For grouped bar charts with many bars and xLabel present, do NOT add extra space (avoid overlap)
|
|
8811
8811
|
if (subgroups.length > 1 && data.length > 8 && metaData.xLabel) {
|
|
8812
|
+
// In maximized (fullscreen) view, keep the gap minimal
|
|
8813
|
+
if (self.chartConfiguration.isFullScreen) {
|
|
8814
|
+
return short_tick_length_bg;
|
|
8815
|
+
}
|
|
8812
8816
|
return short_tick_length_bg;
|
|
8813
8817
|
}
|
|
8814
|
-
// For grouped bar charts with many bars and NO xLabel, add space as before
|
|
8818
|
+
// For grouped bar charts with many bars and NO xLabel, add space as before, but reduce in fullscreen
|
|
8815
8819
|
if (subgroups.length > 1 && data.length > 8 && !metaData.xLabel) {
|
|
8816
8820
|
const chartHasExtraBottom = (self.chartConfiguration.margin && self.chartConfiguration.margin.bottom >= 40);
|
|
8821
|
+
if (self.chartConfiguration.isFullScreen) {
|
|
8822
|
+
// Reduce extra gap in maximized view
|
|
8823
|
+
return short_tick_length_bg + 2;
|
|
8824
|
+
}
|
|
8817
8825
|
return chartHasExtraBottom ? short_tick_length_bg : short_tick_length_bg + 10;
|
|
8818
8826
|
}
|
|
8819
8827
|
// Default/fallback logic for other cases
|
|
@@ -8826,6 +8834,10 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
8826
8834
|
if (/\d{2,4}[-\/]\d{2,4}/.test(d) && d.indexOf(' ') > -1) {
|
|
8827
8835
|
baseY += 4;
|
|
8828
8836
|
}
|
|
8837
|
+
// In maximized view, reduce baseY slightly for grouped bars
|
|
8838
|
+
if (self.chartConfiguration.isFullScreen && subgroups.length > 1) {
|
|
8839
|
+
baseY = Math.max(short_tick_length_bg, baseY - 10);
|
|
8840
|
+
}
|
|
8829
8841
|
return baseY;
|
|
8830
8842
|
})
|
|
8831
8843
|
.attr('x', function (d) {
|
|
@@ -9396,12 +9408,9 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
9396
9408
|
.attr('class', 'title')
|
|
9397
9409
|
.style('z-index', 99)
|
|
9398
9410
|
.html(function () {
|
|
9399
|
-
|
|
9400
|
-
let barLabel = d.name; // This is the x-axis label for the bar
|
|
9411
|
+
let barLabel = d.key;
|
|
9401
9412
|
let dataType = metaData.dataType ? metaData.dataType : '';
|
|
9402
9413
|
let value = d.value;
|
|
9403
|
-
let key = d.key;
|
|
9404
|
-
// Tooltip: show x-axis label and value, but do not show date
|
|
9405
9414
|
let desiredText = '<span class="title-bar-name">' + barLabel + '</span>';
|
|
9406
9415
|
desiredText +=
|
|
9407
9416
|
'<span class="title-bar-value"><span>' +
|