axidio-styleguide-library1-v2 0.0.879 → 0.0.881

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.
@@ -7550,7 +7550,7 @@ class HorizontalBarsWithScrollZoomComponent extends ComponentUniqueId {
7550
7550
  else {
7551
7551
  if (self.chartConfiguration.isDrilldownChart &&
7552
7552
  self.chartData.data.length <= 3) {
7553
- return xScale(d.data.name) + xScale.bandwidth() / 2 - 70;
7553
+ return xScale(d.data.name) + xScale.bandwidth() / 2 - 35;
7554
7554
  }
7555
7555
  return xScale(d.data.name) + xScale.bandwidth() * 0.1;
7556
7556
  }
@@ -7571,7 +7571,7 @@ class HorizontalBarsWithScrollZoomComponent extends ComponentUniqueId {
7571
7571
  ? xScale.bandwidth()
7572
7572
  : self.chartConfiguration.isDrilldownChart &&
7573
7573
  self.chartData.data.length <= 3
7574
- ? 140
7574
+ ? 70
7575
7575
  : xScale.bandwidth() * 0.8;
7576
7576
  })
7577
7577
  // .style('cursor', 'pointer');
@@ -9048,30 +9048,38 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
9048
9048
  if (x.bandwidth() > 100) {
9049
9049
  if (self.chartData.data.length == 1) {
9050
9050
  if (Object.keys(self.chartData.data[0]).length == 2) {
9051
- return tempScale.range([
9051
+ tempScale.range([
9052
9052
  0 + (x.bandwidth() - 125) / 2,
9053
9053
  x.bandwidth() - (x.bandwidth() - 125) / 2,
9054
9054
  ]);
9055
9055
  // .padding(0.05);
9056
9056
  }
9057
9057
  else
9058
- return tempScale.range([
9058
+ tempScale.range([
9059
9059
  0 + (x.bandwidth() - 125) / 2,
9060
9060
  x.bandwidth() - (x.bandwidth() - 125) / 2,
9061
9061
  ]);
9062
9062
  // .padding(0.05);
9063
9063
  }
9064
9064
  else
9065
- return tempScale.range([
9065
+ tempScale.range([
9066
9066
  0 + (x.bandwidth() - 125) / 2,
9067
9067
  x.bandwidth() - (x.bandwidth() - 125) / 2,
9068
9068
  ]);
9069
9069
  }
9070
9070
  }
9071
9071
  });
9072
- // return tempScale.bandwidth();
9073
- }
9074
- return xSubgroup.bandwidth();
9072
+ return self.isZoomedOut
9073
+ ? tempScale.bandwidth()
9074
+ : self.chartData.data.length && self.chartData.data.length > 8
9075
+ ? tempScale.bandwidth() * 0.5
9076
+ : tempScale.bandwidth();
9077
+ }
9078
+ return self.isZoomedOut
9079
+ ? tempScale.bandwidth()
9080
+ : self.chartData.data.length && self.chartData.data.length > 8
9081
+ ? tempScale.bandwidth() * 0.5
9082
+ : tempScale.bandwidth();
9075
9083
  })
9076
9084
  .attr('height', function (d) {
9077
9085
  if (d.value == -1) {