axidio-styleguide-library1-v2 0.0.834 → 0.0.835

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.
@@ -8434,7 +8434,7 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
8434
8434
  isDisplayBarDetailsAtBottom: undefined,
8435
8435
  howmanyBarDetailsToDisplay: 0,
8436
8436
  barVauleColor: undefined,
8437
- defaultBarHeight: 4,
8437
+ defaultBarHeight: 2,
8438
8438
  };
8439
8439
  this.uniqueId = this.getUniqueId();
8440
8440
  this.isZoomedOut = false;
@@ -9013,14 +9013,10 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
9013
9013
  if (d.value == -1) {
9014
9014
  return y(0);
9015
9015
  }
9016
- if (d.value) {
9017
- // For values between 0 and 10, position bar at baseline with default height
9018
- if (d.value <= 10 && d.value >= 0) {
9019
- const defaultHeight = self.chartConfiguration.defaultBarHeight || 8;
9020
- return y(0) - defaultHeight;
9021
- }
9022
- // For values greater than 10, use normal calculated position
9023
- return y(d.value);
9016
+ if (d.value >= 0) {
9017
+ const barHeight = height - y(d.value);
9018
+ const minHeight = self.chartConfiguration.defaultBarHeight || 2;
9019
+ return barHeight < minHeight ? y(0) - minHeight : y(d.value);
9024
9020
  }
9025
9021
  return y(0);
9026
9022
  })
@@ -9058,23 +9054,24 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
9058
9054
  });
9059
9055
  return self.isZoomedOut
9060
9056
  ? tempScale.bandwidth()
9061
- : tempScale.bandwidth() * 0.5;
9057
+ : self.chartData.data.length && self.chartData.data.length > 8
9058
+ ? tempScale.bandwidth() * 0.5
9059
+ : tempScale.bandwidth();
9062
9060
  }
9063
9061
  return self.isZoomedOut
9064
- ? xSubgroup.bandwidth()
9065
- : xSubgroup.bandwidth() * 0.5;
9062
+ ? tempScale.bandwidth()
9063
+ : self.chartData.data.length && self.chartData.data.length > 8
9064
+ ? tempScale.bandwidth() * 0.5
9065
+ : tempScale.bandwidth();
9066
9066
  })
9067
9067
  .attr('height', function (d) {
9068
9068
  if (d.value == -1) {
9069
9069
  return height - y(0);
9070
9070
  }
9071
- if (d.value) {
9072
- // For values between 0 and 10 (inclusive), use default height
9073
- if (d.value <= 10 && d.value >= 0) {
9074
- return self.chartConfiguration.defaultBarHeight || 8;
9075
- }
9076
- // For values greater than 10, use calculated height
9077
- return height - y(d.value);
9071
+ if (d.value >= 0) {
9072
+ const barHeight = height - y(d.value);
9073
+ const minHeight = self.chartConfiguration.defaultBarHeight || 2;
9074
+ return Math.max(barHeight, minHeight);
9078
9075
  }
9079
9076
  return height - y(0);
9080
9077
  })