axidio-styleguide-library1-v2 0.0.807 → 0.0.809

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.
@@ -9041,9 +9041,13 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
9041
9041
  }
9042
9042
  }
9043
9043
  });
9044
- return tempScale.bandwidth();
9044
+ return self.isZoomedOut
9045
+ ? tempScale.bandwidth() * 0.5
9046
+ : tempScale.bandwidth();
9045
9047
  }
9046
- return xSubgroup.bandwidth();
9048
+ return self.isZoomedOut
9049
+ ? xSubgroup.bandwidth() * 0.5
9050
+ : xSubgroup.bandwidth();
9047
9051
  })
9048
9052
  .attr('height', function (d) {
9049
9053
  if (d.value == -1) {
@@ -9322,7 +9326,7 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
9322
9326
  .on('mouseout', function (d) {
9323
9327
  state.selectAll('.barstext').remove();
9324
9328
  })
9325
- .on('mouseover', (d1) => {
9329
+ .on('mouseover', function (d1) {
9326
9330
  state
9327
9331
  .selectAll('text')
9328
9332
  .data(function (d) {
@@ -9352,10 +9356,9 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
9352
9356
  .style('fill', function (d) {
9353
9357
  return metaData.colors[d.key];
9354
9358
  })
9355
- // .attr('width', xSubgroup.bandwidth())
9356
- // .attr('width', this.isZoomedOut ? xSubgroup.bandwidth() : xSubgroup.bandwidth() * 0.6)
9357
- .attr('x', (d) => xSubgroup(d.key) +
9358
- (this.isZoomedOut ? 0 : (xSubgroup.bandwidth() * 0.4) / 2))
9359
+ .attr('width', self.isZoomedOut
9360
+ ? xSubgroup.bandwidth() * 0.5
9361
+ : xSubgroup.bandwidth() * 0.8)
9359
9362
  .text(function (d) {
9360
9363
  return d.value;
9361
9364
  });