axidio-styleguide-library1-v2 0.0.810 → 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;