axidio-styleguide-library1-v2 0.0.939 → 0.0.941
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,11 @@ 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,
|
|
8810
|
+
// For grouped bar charts with many bars, only add extra y-offset if not already spaced by margin
|
|
8811
8811
|
if (subgroups.length > 1 && data.length > 8) {
|
|
8812
|
-
|
|
8812
|
+
// If margin.bottom is already large (>= 40), don't add extra offset
|
|
8813
|
+
const chartHasExtraBottom = (self.chartConfiguration.margin && self.chartConfiguration.margin.bottom >= 40);
|
|
8814
|
+
return chartHasExtraBottom ? short_tick_length_bg + 5 : short_tick_length_bg + 20;
|
|
8813
8815
|
}
|
|
8814
8816
|
// Default/fallback logic for other cases
|
|
8815
8817
|
let baseY = self.isHeaderVisible ? short_tick_length_bg + 25 : short_tick_length_bg;
|
|
@@ -9392,7 +9394,7 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
9392
9394
|
.style('z-index', 99)
|
|
9393
9395
|
.html(function () {
|
|
9394
9396
|
// Show the x-axis label (bar name) for this bar, not the date or any other value
|
|
9395
|
-
let barLabel = d.
|
|
9397
|
+
let barLabel = d.key; // This is the x-axis label for the bar
|
|
9396
9398
|
let dataType = metaData.dataType ? metaData.dataType : '';
|
|
9397
9399
|
let value = d.value;
|
|
9398
9400
|
let key = d.key;
|