axidio-styleguide-library1-v2 0.0.796 → 0.0.797

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.
@@ -8892,8 +8892,7 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
8892
8892
  }
8893
8893
  var xSubgroup = d3.scaleBand().domain(subgroups);
8894
8894
  if (this.chartConfiguration.isMultiChartGridLine == undefined) {
8895
- xSubgroup.range([0, x.bandwidth()])
8896
- .padding(this.isZoomedOut ? 0.1 : 0.3);
8895
+ xSubgroup.range([0, x.bandwidth()]);
8897
8896
  }
8898
8897
  else {
8899
8898
  /**
@@ -9029,8 +9028,7 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
9029
9028
  });
9030
9029
  return tempScale.bandwidth();
9031
9030
  }
9032
- const baseWidth = xSubgroup.bandwidth();
9033
- return self.isZoomedOut ? baseWidth : baseWidth * 0.7;
9031
+ return xSubgroup.bandwidth();
9034
9032
  })
9035
9033
  .attr('height', function (d) {
9036
9034
  if (d.value == -1) {
@@ -9309,7 +9307,7 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
9309
9307
  .on('mouseout', function (d) {
9310
9308
  state.selectAll('.barstext').remove();
9311
9309
  })
9312
- .on('mouseover', function (d1) {
9310
+ .on('mouseover', (d1) => {
9313
9311
  state
9314
9312
  .selectAll('text')
9315
9313
  .data(function (d) {
@@ -9339,7 +9337,10 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
9339
9337
  .style('fill', function (d) {
9340
9338
  return metaData.colors[d.key];
9341
9339
  })
9342
- .attr('width', xSubgroup.bandwidth())
9340
+ // .attr('width', xSubgroup.bandwidth())
9341
+ // .attr('width', this.isZoomedOut ? xSubgroup.bandwidth() : xSubgroup.bandwidth() * 0.6)
9342
+ .attr('x', (d) => xSubgroup(d.key) +
9343
+ (this.isZoomedOut ? 0 : (xSubgroup.bandwidth() * 0.4) / 2))
9343
9344
  .text(function (d) {
9344
9345
  return d.value;
9345
9346
  });