axidio-styleguide-library1-v2 0.4.62 → 0.4.63

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.
@@ -8252,7 +8252,13 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
8252
8252
  .on('click', (d) => this.handleBarClick(d, metaData, self))
8253
8253
  .attr('x', (d) => this.calculateBarX(d, data, x, xSubgroup, self, tempScale))
8254
8254
  .attr('y', (d) => this.calculateBarY(d, y, height, self))
8255
- .attr('width', (d) => this.calculateBarWidth(d, data, subgroups, x, xSubgroup, self, tempScale))
8255
+ .attr('width', (d) => {
8256
+ let width = this.calculateBarWidth(d, data, subgroups, x, xSubgroup, self, tempScale);
8257
+ if (isria && self.chartData.data.length >= 8) {
8258
+ width = Math.max(0, width - 30); // Prevent negative width
8259
+ }
8260
+ return width;
8261
+ })
8256
8262
  .attr('height', (d) => this.calculateBarHeight(d, y, height, self))
8257
8263
  .style('cursor', () => (metaData.hasDrillDown && !isria) ? 'pointer' : 'default')
8258
8264
  .attr('fill', (d) => this.getBarColor(d, metaData, self));