axidio-styleguide-library1-v2 0.4.83 → 0.4.85

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,7 +7917,18 @@ 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;
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
+ })();
7921
7932
  svg.selectAll('g.x1.axis1 g.tick text')
7922
7933
  // .attr('class', 'lib-xaxis-labels-texts-drilldown')
7923
7934
  .attr('class', isria