axidio-styleguide-library1-v2 0.5.30 → 0.5.32

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.
@@ -8251,14 +8251,14 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
8251
8251
  .call((g) => g.select('.domain').remove());
8252
8252
  }
8253
8253
  // Y-axis grid
8254
- if (this.chartConfiguration.yAxisGrid) {
8254
+ if (this.chartConfiguration.yAxisGrid || isria) {
8255
8255
  svg.append('g')
8256
8256
  .call(d3.axisLeft(y).ticks(self.chartConfiguration.numberOfYTicks).tickSize(-width))
8257
8257
  .style('color', 'var(--chart-axis-color, #B9B9B9)')
8258
8258
  .style('opacity', '0.5')
8259
8259
  .call((g) => g.select('.domain').remove().style('stroke', 'var(--chart-domain-color, #000000)'));
8260
8260
  }
8261
- if (!this.chartConfiguration.yAxisGrid) {
8261
+ else {
8262
8262
  svg.append('g')
8263
8263
  .call(d3.axisLeft(y).ticks(self.chartConfiguration.numberOfYTicks))
8264
8264
  .style('color', 'var(--chart-axis-color, #B9B9B9)')
@@ -8672,13 +8672,9 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
8672
8672
  // X-axis label
8673
8673
  if (metaData.xLabel) {
8674
8674
  const isAcronym = this.isLabelAcronym(metaData.xLabel);
8675
- let xPosition = height + margin.top + margin.bottom;
8676
- if (!isria) {
8677
- xPosition += 40;
8678
- }
8679
- // const xPosition = isria
8680
- // ? (height + margin.top + margin.bottom)
8681
- // : (height + margin.top + margin.bottom + 40);
8675
+ const xPosition = isria
8676
+ ? (height + margin.top + margin.bottom)
8677
+ : (height + margin.top + margin.bottom + 40);
8682
8678
  svg.append('text')
8683
8679
  .attr('class', this.getXLabelClass(self))
8684
8680
  .attr('style', self.chartConfiguration.xAxisCustomlabelStyles)