axidio-styleguide-library1-v2 0.2.57 → 0.2.58

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.
@@ -8930,7 +8930,10 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
8930
8930
  try {
8931
8931
  const groupsCount = data.length || 0;
8932
8932
  const subgroupsCount = (keyList && keyList.length) || 0;
8933
- if (this.isZoomedOut && (isMobile || isTablet) && (groupsCount > 8 || subgroupsCount > 2)) {
8933
+ // Show scrollbar on mobile/tablet when there are many groups or
8934
+ // when multiple subgroups exist, regardless of zoom state (so both
8935
+ // zoom-in and zoom-out will allow horizontal scrolling on small viewports).
8936
+ if ((isMobile || isTablet) && (groupsCount > 8 || subgroupsCount > 2)) {
8934
8937
  innerContainer.style('overflow-x', 'auto');
8935
8938
  innerContainer.classed('scroll-enabled', true);
8936
8939
  }
@@ -9093,7 +9096,7 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
9093
9096
  hasDateValues = true;
9094
9097
  }
9095
9098
  });
9096
- if (hasDateValues && subgroups && subgroups.length < 2) {
9099
+ if (hasDateValues && subgroups && subgroups.length < 3) {
9097
9100
  // For single chart with dates, ensure horizontal display
9098
9101
  textNodes
9099
9102
  .style('writing-mode', 'horizontal-tb') // Explicitly set horizontal
@@ -9175,7 +9178,7 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
9175
9178
  // Mobile handling: keep date labels intact for single-series charts (do not trim)
9176
9179
  if (isMobile) {
9177
9180
  const isDateLabel = /\d{2,4}[-\/]\d{1,2}[-\/]\d{1,4}/.test(d) || !isNaN(Date.parse(d));
9178
- if (isDateLabel && subgroups && subgroups.length < 2) {
9181
+ if (isDateLabel && subgroups && subgroups.length < 3) {
9179
9182
  // For single-series charts on mobile, show full date labels (no trimming)
9180
9183
  return d;
9181
9184
  }