axidio-styleguide-library1-v2 0.0.906 → 0.0.908

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.
@@ -7290,7 +7290,7 @@ class HorizontalBarsWithScrollZoomComponent extends ComponentUniqueId {
7290
7290
  : this.chartData.data.length * (isMobile ? 15 : 25);
7291
7291
  }
7292
7292
  if (this.chartData.data.length > 8 && !this.isZoomedOut) {
7293
- width = this.chartData.data.length * (isMobile ? 60 : 130);
7293
+ width = this.chartData.data.length * (isMobile ? 60 : 80);
7294
7294
  }
7295
7295
  // Fullscreen and drilldown adjustments
7296
7296
  if (this.chartConfiguration.isFullScreen != undefined && this.chartConfiguration.isFullScreen) {
@@ -7299,7 +7299,7 @@ class HorizontalBarsWithScrollZoomComponent extends ComponentUniqueId {
7299
7299
  : containerHeight;
7300
7300
  }
7301
7301
  if (this.chartConfiguration.isDrilldownChart) {
7302
- height = containerHeight - margin.top - margin.bottom - (isMobile ? 60 : 130);
7302
+ height = containerHeight - margin.top - margin.bottom - (isMobile ? 60 : 80);
7303
7303
  }
7304
7304
  // ...existing code...
7305
7305
  /**
@@ -7378,10 +7378,9 @@ class HorizontalBarsWithScrollZoomComponent extends ComponentUniqueId {
7378
7378
  innerContainer.style('overflow-x', 'auto');
7379
7379
  }
7380
7380
  else {
7381
- // Force bar width to a maximum of 80px for normal (zoom-in) view
7382
- barWidth = Math.min(80, Math.max(24, (width - rightSvgWidth - leftAndRightSpaces * 2) / data.length));
7381
+ barWidth = Math.max(40, (width - rightSvgWidth - leftAndRightSpaces * 2) / data.length);
7383
7382
  barPadding = 0;
7384
- requiredSvgWidth = data.length * barWidth + leftAndRightSpaces * 2 + rightSvgWidth;
7383
+ requiredSvgWidth = width - rightSvgWidth;
7385
7384
  }
7386
7385
  var svg = innerContainer
7387
7386
  .append('svg')
@@ -7593,12 +7592,12 @@ class HorizontalBarsWithScrollZoomComponent extends ComponentUniqueId {
7593
7592
  return 0;
7594
7593
  })
7595
7594
  .attr('width', function (d) {
7596
- // Use calculated barWidth for mobile, otherwise force to 80px max for normal view
7595
+ // Use calculated barWidth for mobile, otherwise scale
7597
7596
  if (isMobile) {
7598
7597
  return barWidth;
7599
7598
  }
7600
7599
  return self.chartConfiguration.isMultiChartGridLine == undefined
7601
- ? barWidth
7600
+ ? xScale.bandwidth()
7602
7601
  : self.chartConfiguration.isDrilldownChart &&
7603
7602
  self.chartData.data.length <= 3
7604
7603
  ? 70