axidio-styleguide-library1-v2 0.0.812 → 0.0.813

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,15 +8769,8 @@ 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
+ .attr('x', 0) // Keep at center
8773
+ .attr('text-anchor', 'middle')
8781
8774
  .text(function (d) {
8782
8775
  var isValueToBeIgnored = false;
8783
8776
  data.map((indiv) => {
@@ -8806,15 +8799,8 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
8806
8799
  .append('text')
8807
8800
  .attr('class', 'lib-xaxis-labels-texts-drilldown')
8808
8801
  .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
- })
8802
+ .attr('x', 0) // Keep at center
8803
+ .attr('text-anchor', 'middle')
8818
8804
  .attr('fill', 'var(--chart-text-color)')
8819
8805
  .text(function (d) {
8820
8806
  if (d.trim().indexOf(' ') > -1) {
@@ -9075,7 +9061,7 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
9075
9061
  }
9076
9062
  return self.isZoomedOut
9077
9063
  ? xSubgroup.bandwidth()
9078
- : xSubgroup.bandwidth() * 0.5;
9064
+ : xSubgroup.bandwidth();
9079
9065
  })
9080
9066
  .attr('height', function (d) {
9081
9067
  if (d.value == -1) {