axidio-styleguide-library1-v2 0.0.942 → 0.0.943
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.
|
@@ -8807,9 +8807,12 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
8807
8807
|
.attr('class', 'lib-xaxis-labels-texts-drilldown')
|
|
8808
8808
|
.style('font-size', this.isHeaderVisible ? '18px' : '14px')
|
|
8809
8809
|
.attr('y', function (d) {
|
|
8810
|
-
// For grouped bar charts with many bars
|
|
8811
|
-
if (subgroups.length > 1 && data.length > 8) {
|
|
8812
|
-
|
|
8810
|
+
// For grouped bar charts with many bars and xLabel present, do NOT add extra space (avoid overlap)
|
|
8811
|
+
if (subgroups.length > 1 && data.length > 8 && metaData.xLabel) {
|
|
8812
|
+
return short_tick_length_bg;
|
|
8813
|
+
}
|
|
8814
|
+
// For grouped bar charts with many bars and NO xLabel, add space as before
|
|
8815
|
+
if (subgroups.length > 1 && data.length > 8 && !metaData.xLabel) {
|
|
8813
8816
|
const chartHasExtraBottom = (self.chartConfiguration.margin && self.chartConfiguration.margin.bottom >= 40);
|
|
8814
8817
|
return chartHasExtraBottom ? short_tick_length_bg : short_tick_length_bg + 10;
|
|
8815
8818
|
}
|
|
@@ -9394,7 +9397,7 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
9394
9397
|
.style('z-index', 99)
|
|
9395
9398
|
.html(function () {
|
|
9396
9399
|
// Show the x-axis label (bar name) for this bar, not the date or any other value
|
|
9397
|
-
let barLabel = d.
|
|
9400
|
+
let barLabel = d.key; // This is the x-axis label for the bar
|
|
9398
9401
|
let dataType = metaData.dataType ? metaData.dataType : '';
|
|
9399
9402
|
let value = d.value;
|
|
9400
9403
|
let key = d.key;
|