axidio-styleguide-library1-v2 0.1.13 → 0.1.15

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.
@@ -8783,13 +8783,13 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
8783
8783
  .attr('class', 'lib-xaxis-labels-texts-drilldown')
8784
8784
  .style('font-size', this.isHeaderVisible ? '18px' : '14px')
8785
8785
  .attr('y', function (d) {
8786
- // For grouped bar charts with many bars and xLabel present, do NOT add extra space (avoid overlap)
8786
+ // For grouped bar charts with many bars and xLabel present, only add 5 if the label is a date
8787
8787
  if (subgroups.length > 1 && data.length > 8 && metaData.xLabel) {
8788
- // In maximized (fullscreen) view, keep the gap minimal
8788
+ const isDateLabel = /\d{2,4}[-\/]/.test(d);
8789
8789
  if (self.chartConfiguration.isFullScreen) {
8790
- return short_tick_length_bg + 5; // Slightly reduce gap
8790
+ return isDateLabel ? short_tick_length_bg + 5 : short_tick_length_bg;
8791
8791
  }
8792
- return short_tick_length_bg + 5;
8792
+ return isDateLabel ? short_tick_length_bg + 5 : short_tick_length_bg;
8793
8793
  }
8794
8794
  // For grouped bar charts with many bars and NO xLabel, add space as before, but reduce in fullscreen
8795
8795
  if (subgroups.length > 1 && data.length > 8 && !metaData.xLabel) {