axidio-styleguide-library1-v2 0.7.31 → 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.
@@ -8325,7 +8325,7 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
8325
8325
  else if (labelCount >= 3) {
8326
8326
  // For more than 3 labels, use vertical alignment
8327
8327
  textNodes
8328
- .style('writing-mode', 'sideways-lr') // Vertical text
8328
+ // .style('writing-mode', 'sideways-lr') // Vertical text
8329
8329
  .classed('mobile-xaxis-override', true) // Add vertical class
8330
8330
  .attr('text-anchor', 'middle') // Center align
8331
8331
  .attr('y', 30) // Adjust vertical position
@@ -8360,9 +8360,9 @@ 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 > 8 && isDateLabel && !isWeekLabel) {
8364
- // d3.select(this).style('writing-mode', 'sideways-lr');
8365
- // }
8363
+ if (subgroups.length > 1 && self.isZoomedOut && data.length <= 6 && isDateLabel && !isWeekLabel) {
8364
+ d3.select(this).style('writing-mode', 'sideways-lr');
8365
+ }
8366
8366
  });
8367
8367
  // Add second line for non-date labels on desktop
8368
8368
  if (!isMobile) {