axidio-styleguide-library1-v2 0.0.811 → 0.0.812

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.
@@ -8769,6 +8769,15 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
8769
8769
  .selectAll('g.x1.axis1 g.tick text')
8770
8770
  .attr('class', 'lib-xaxis-labels-texts-drilldown')
8771
8771
  .attr('y', short_tick_length_bg)
8772
+ .attr('x', function (d) {
8773
+ // SAME adjustment as first line for consistent alignment
8774
+ if (self.isZoomedOut) {
8775
+ return 0; // Default position when zoomed out
8776
+ }
8777
+ else {
8778
+ return -x.bandwidth() * 0.08; // Shift left when zoomed in - SAME VALUE
8779
+ }
8780
+ })
8772
8781
  .text(function (d) {
8773
8782
  var isValueToBeIgnored = false;
8774
8783
  data.map((indiv) => {
@@ -8797,6 +8806,15 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
8797
8806
  .append('text')
8798
8807
  .attr('class', 'lib-xaxis-labels-texts-drilldown')
8799
8808
  .attr('y', long_tick_length_bg)
8809
+ .attr('x', function (d) {
8810
+ // Adjust position based on zoom state
8811
+ if (self.isZoomedOut) {
8812
+ return 0; // Default position when zoomed out
8813
+ }
8814
+ else {
8815
+ return -x.bandwidth() * 0.08; // Shift left when zoomed in
8816
+ }
8817
+ })
8800
8818
  .attr('fill', 'var(--chart-text-color)')
8801
8819
  .text(function (d) {
8802
8820
  if (d.trim().indexOf(' ') > -1) {