axidio-styleguide-library1-v2 0.7.30 → 0.7.32

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.
@@ -8289,14 +8289,6 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
8289
8289
  currentText.text(trimmed);
8290
8290
  }
8291
8291
  }
8292
- else if (isDateString && data.length <= 8) {
8293
- // NEW: For date strings with few bars, ensure proper spacing
8294
- const currentText = d3.select(this);
8295
- currentText
8296
- .style('font-size', '11px')
8297
- .style('text-anchor', 'middle')
8298
- .attr('y', 10); // Add some breathing room
8299
- }
8300
8292
  });
8301
8293
  }
8302
8294
  // Mobile/tablet override - check for single-group date charts first
@@ -8368,9 +8360,9 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
8368
8360
  xAxisLabels.each(function (d) {
8369
8361
  const isDateLabel = /^(\d{2,4}[-\/])?\d{2,4}[-\/]\d{2,4}$/.test(d.trim());
8370
8362
  const isWeekLabel = /week|wk|w\d+/i.test(d);
8371
- // if (subgroups.length > 1 && self.isZoomedOut && data.length > 8 && isDateLabel && !isWeekLabel) {
8372
- // d3.select(this).style('writing-mode', 'sideways-lr');
8373
- // }
8363
+ if (subgroups.length > 1 && self.isZoomedOut && data.length <= 6 && isDateLabel && !isWeekLabel) {
8364
+ d3.select(this).style('writing-mode', 'sideways-lr');
8365
+ }
8374
8366
  });
8375
8367
  // Add second line for non-date labels on desktop
8376
8368
  if (!isMobile) {