axidio-styleguide-library1-v2 0.0.832 → 0.0.833

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
  })
@@ -9068,13 +9064,10 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
9068
9064
  if (d.value == -1) {
9069
9065
  return height - y(0);
9070
9066
  }
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);
9067
+ if (d.value >= 0) {
9068
+ const barHeight = height - y(d.value);
9069
+ const minHeight = self.chartConfiguration.defaultBarHeight || 2;
9070
+ return Math.max(barHeight, minHeight);
9078
9071
  }
9079
9072
  return height - y(0);
9080
9073
  })