axidio-styleguide-library1-v2 0.0.904 → 0.0.906

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.
@@ -7378,9 +7378,10 @@ class HorizontalBarsWithScrollZoomComponent extends ComponentUniqueId {
7378
7378
  innerContainer.style('overflow-x', 'auto');
7379
7379
  }
7380
7380
  else {
7381
- barWidth = Math.max(40, (width - rightSvgWidth - leftAndRightSpaces * 2) / data.length);
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));
7382
7383
  barPadding = 0;
7383
- requiredSvgWidth = width - rightSvgWidth;
7384
+ requiredSvgWidth = data.length * barWidth + leftAndRightSpaces * 2 + rightSvgWidth;
7384
7385
  }
7385
7386
  var svg = innerContainer
7386
7387
  .append('svg')
@@ -7592,12 +7593,12 @@ class HorizontalBarsWithScrollZoomComponent extends ComponentUniqueId {
7592
7593
  return 0;
7593
7594
  })
7594
7595
  .attr('width', function (d) {
7595
- // Use calculated barWidth for mobile, otherwise scale
7596
+ // Use calculated barWidth for mobile, otherwise force to 80px max for normal view
7596
7597
  if (isMobile) {
7597
7598
  return barWidth;
7598
7599
  }
7599
7600
  return self.chartConfiguration.isMultiChartGridLine == undefined
7600
- ? xScale.bandwidth()
7601
+ ? barWidth
7601
7602
  : self.chartConfiguration.isDrilldownChart &&
7602
7603
  self.chartData.data.length <= 3
7603
7604
  ? 70
@@ -8811,10 +8812,6 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
8811
8812
  let firstPart = d.split(/[\s\-]+/)[0];
8812
8813
  return firstPart.substring(0, 3).toLowerCase();
8813
8814
  }
8814
- if (isria && self.chartData.data.length > 8) {
8815
- let firstPart = d.split(/[\s\-]+/)[0];
8816
- return firstPart.substring(0, 4).toLowerCase();
8817
- }
8818
8815
  data.map((indiv) => {
8819
8816
  if (indiv.name.toLowerCase() == d.trim().toLowerCase() &&
8820
8817
  indiv[metaData.keyList[0]] == -1) {