axidio-styleguide-library1-v2 0.0.798 → 0.0.800

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.
@@ -8242,11 +8242,7 @@ class HorizontalBarsWithScrollZoomComponent extends ComponentUniqueId {
8242
8242
  if (metaData.xLabel) {
8243
8243
  svg
8244
8244
  .append('text')
8245
- .attr('class', 'lib-axis-waterfall-label')
8246
- .attr('transform', 'translate(' + width / 2 + ' ,' + (height + margin.top + 20) + ')')
8247
- .style('text-anchor', 'middle')
8248
- .text(metaData.xLabel.toLowerCase())
8249
- .style('text-transform', 'capitalize');
8245
+ .attr('class', 'lib-axis-waterfall-label');
8250
8246
  }
8251
8247
  if (lineData && colors) {
8252
8248
  var dataGroup = d3
@@ -9032,7 +9028,7 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
9032
9028
  });
9033
9029
  return tempScale.bandwidth();
9034
9030
  }
9035
- return xSubgroup.bandwidth();
9031
+ return self.isZoomedOut ? xSubgroup.bandwidth() : xSubgroup.bandwidth() * 0.5;
9036
9032
  })
9037
9033
  .attr('height', function (d) {
9038
9034
  if (d.value == -1) {
@@ -9311,7 +9307,7 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
9311
9307
  .on('mouseout', function (d) {
9312
9308
  state.selectAll('.barstext').remove();
9313
9309
  })
9314
- .on('mouseover', (d1) => {
9310
+ .on('mouseover', function (d1) {
9315
9311
  state
9316
9312
  .selectAll('text')
9317
9313
  .data(function (d) {
@@ -9341,10 +9337,7 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
9341
9337
  .style('fill', function (d) {
9342
9338
  return metaData.colors[d.key];
9343
9339
  })
9344
- // .attr('width', xSubgroup.bandwidth())
9345
- // .attr('width', this.isZoomedOut ? xSubgroup.bandwidth() : xSubgroup.bandwidth() * 0.6)
9346
- .attr('x', (d) => xSubgroup(d.key) +
9347
- (this.isZoomedOut ? 0 : (xSubgroup.bandwidth() * 0.4) / 2))
9340
+ .attr('width', xSubgroup.bandwidth())
9348
9341
  .text(function (d) {
9349
9342
  return d.value;
9350
9343
  });