axidio-styleguide-library1-v2 0.2.86 → 0.2.88

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.
@@ -7886,10 +7886,10 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
7886
7886
  // Default mobile behavior for non-date or multi-group
7887
7887
  textNodes.classed('mobile-xaxis-override', true);
7888
7888
  }
7889
- // If there are many groups on mobile/tablet, rotate labels to sideways to
7890
- // avoid overlapping and make them readable. Use a lower threshold
7891
- // (3) so small screens get rotated labels when needed.
7892
- if (groupsCount > 3) {
7889
+ // If there are many groups on mobile/tablet AND this is a grouped chart,
7890
+ // rotate labels to sideways to avoid overlapping and make them readable.
7891
+ // Do NOT rotate for single-bar charts on tablet/mobile.
7892
+ if (groupsCount > 3 && subgroups && subgroups.length < 3) {
7893
7893
  svg.selectAll('g.x1.axis1 g.tick text')
7894
7894
  .style('writing-mode', 'sideways-lr')
7895
7895
  .style('text-anchor', 'middle')