axidio-styleguide-library1-v2 0.7.32 → 0.7.33

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.
@@ -8360,8 +8360,12 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
8360
8360
  xAxisLabels.each(function (d) {
8361
8361
  const isDateLabel = /^(\d{2,4}[-\/])?\d{2,4}[-\/]\d{2,4}$/.test(d.trim());
8362
8362
  const isWeekLabel = /week|wk|w\d+/i.test(d);
8363
- if (subgroups.length > 1 && self.isZoomedOut && data.length <= 6 && isDateLabel && !isWeekLabel) {
8364
- d3.select(this).style('writing-mode', 'sideways-lr');
8363
+ const is601x962 = Math.min(window.innerWidth, window.innerHeight) === 601 &&
8364
+ Math.max(window.innerWidth, window.innerHeight) === 962;
8365
+ if (subgroups.length > 1 && self.isZoomedOut && data.length == 6 && isDateLabel && !isWeekLabel && !self.isHeaderVisible && is601x962) {
8366
+ d3.select(this)
8367
+ .style('writing-mode', 'sideways-lr')
8368
+ .attr('y', 18);
8365
8369
  }
8366
8370
  });
8367
8371
  // Add second line for non-date labels on desktop