axidio-styleguide-library1-v2 0.4.88 → 0.4.90

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.
@@ -7917,18 +7917,7 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
7917
7917
  }
7918
7918
  });
7919
7919
  svg.selectAll('g.x1.axis1 g.tick line').remove();
7920
- // const yOffset = subgroups.length > 1 && !metaData.xLabel ? 32 : 0;
7921
- const yOffset = (() => {
7922
- // Single bar in zoom-in view
7923
- if (subgroups.length === 1 && !self.isZoomedOut) {
7924
- return 5;
7925
- }
7926
- // Multiple bars without xLabel
7927
- if (subgroups.length > 1 && !metaData.xLabel) {
7928
- return 32;
7929
- }
7930
- return 0;
7931
- })();
7920
+ const yOffset = subgroups.length > 1 && !metaData.xLabel ? 32 : 0;
7932
7921
  svg.selectAll('g.x1.axis1 g.tick text')
7933
7922
  // .attr('class', 'lib-xaxis-labels-texts-drilldown')
7934
7923
  .attr('class', isria
@@ -7936,10 +7925,6 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
7936
7925
  : 'lib-xaxis-labels-texts-drilldown')
7937
7926
  .style('fill', 'var(--chart-text-color)')
7938
7927
  .attr('y', yOffset || null);
7939
- if (!isria && self.chartData.data.length > 11 && !self.isZoomedOut) {
7940
- svg.selectAll('g.x1.axis1 g.tick text')
7941
- .attr('x', -20);
7942
- }
7943
7928
  }
7944
7929
  else {
7945
7930
  // Bigger ticks for weekly charts
@@ -7998,6 +7983,10 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
7998
7983
  svg.selectAll('g.x1.axis1 g.tick text')
7999
7984
  .attr('x', -20);
8000
7985
  }
7986
+ if (!isria && self.chartData.data.length > 11 && !self.isZoomedOut && (x.bandwidth < 100)) {
7987
+ svg.selectAll('g.x1.axis1 g.tick text')
7988
+ .attr('x', -20);
7989
+ }
8001
7990
  // ✅ Tablet View — Rotate if text > 10 characters
8002
7991
  if (isTablet) {
8003
7992
  const textNodes = svg.selectAll('g.x1.axis1 g.tick text');