axidio-styleguide-library1-v2 0.0.809 → 0.0.811

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.
@@ -8694,7 +8694,17 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
8694
8694
  svg
8695
8695
  .selectAll('g.x1.axis1 g.tick text')
8696
8696
  .attr('class', 'lib-xaxis-labels-texts-drilldown')
8697
- .style('fill', 'var(--chart-text-color)');
8697
+ .style('fill', 'var(--chart-text-color)')
8698
+ .attr('transform', function (d) {
8699
+ if (self.isZoomedOut) {
8700
+ return 'translate(0, 0)'; // Default position when zoomed out
8701
+ }
8702
+ else {
8703
+ // When zoomed in, shift labels left
8704
+ const leftOffset = -x.bandwidth() * 0.1; // Shift left by 10% of bandwidth
8705
+ return `translate(${leftOffset}, 0)`;
8706
+ }
8707
+ });
8698
8708
  // .attr('y', function () {
8699
8709
  // if (alternate_text) {
8700
8710
  // alternate_text = false;
@@ -9042,12 +9052,12 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
9042
9052
  }
9043
9053
  });
9044
9054
  return self.isZoomedOut
9045
- ? tempScale.bandwidth() * 0.5
9046
- : tempScale.bandwidth();
9055
+ ? tempScale.bandwidth()
9056
+ : tempScale.bandwidth() * 0.5;
9047
9057
  }
9048
9058
  return self.isZoomedOut
9049
- ? xSubgroup.bandwidth() * 0.5
9050
- : xSubgroup.bandwidth();
9059
+ ? xSubgroup.bandwidth()
9060
+ : xSubgroup.bandwidth() * 0.5;
9051
9061
  })
9052
9062
  .attr('height', function (d) {
9053
9063
  if (d.value == -1) {