axidio-styleguide-library1-v2 0.5.31 → 0.5.33

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.
@@ -7893,19 +7893,18 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
7893
7893
  // .call((g) => { if (!isria) g.select('.domain').remove(); })
7894
7894
  .call(g => {
7895
7895
  // RIA + single subgroup → remove domain
7896
- if (isria && (subgroups.length > 1 && self.chartData.data.length === 1)) {
7897
- g.select('.domain').remove();
7898
- return;
7899
- }
7900
- // Default behavior
7901
- if (!isria) {
7902
- g.select('.domain').remove();
7903
- }
7896
+ // if (isria && (subgroups.length > 1 && self.chartData.data.length ===1 )) {
7897
+ // g.select('.domain').remove();
7898
+ // return;
7899
+ // }
7900
+ // // Default behavior
7901
+ // if (!isria) {
7902
+ g.select('.domain').remove();
7903
+ // }
7904
7904
  })
7905
- .call((g) => {
7905
+ // .call((g) => {
7906
7906
  // Move only the axis line (domain) to the left
7907
- g.select('.domain').attr('transform', 'translate(-60,0)');
7908
- })
7907
+ // g.select('.domain').attr('transform', 'translate(-60,0)');})
7909
7908
  .call((g) => {
7910
7909
  // Increase spacing between axis and labels
7911
7910
  if (isria && (subgroups.length === 1 || self.chartData.data.length > 1)) {
@@ -8251,14 +8250,14 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
8251
8250
  .call((g) => g.select('.domain').remove());
8252
8251
  }
8253
8252
  // Y-axis grid
8254
- if (this.chartConfiguration.yAxisGrid) {
8253
+ if (this.chartConfiguration.yAxisGrid || isria) {
8255
8254
  svg.append('g')
8256
8255
  .call(d3.axisLeft(y).ticks(self.chartConfiguration.numberOfYTicks).tickSize(-width))
8257
8256
  .style('color', 'var(--chart-axis-color, #B9B9B9)')
8258
8257
  .style('opacity', '0.5')
8259
8258
  .call((g) => g.select('.domain').remove().style('stroke', 'var(--chart-domain-color, #000000)'));
8260
8259
  }
8261
- if (!this.chartConfiguration.yAxisGrid) {
8260
+ else {
8262
8261
  svg.append('g')
8263
8262
  .call(d3.axisLeft(y).ticks(self.chartConfiguration.numberOfYTicks))
8264
8263
  .style('color', 'var(--chart-axis-color, #B9B9B9)')
@@ -8672,13 +8671,9 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
8672
8671
  // X-axis label
8673
8672
  if (metaData.xLabel) {
8674
8673
  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);
8674
+ const xPosition = isria
8675
+ ? (height + margin.top + margin.bottom)
8676
+ : (height + margin.top + margin.bottom + 40);
8682
8677
  svg.append('text')
8683
8678
  .attr('class', this.getXLabelClass(self))
8684
8679
  .attr('style', self.chartConfiguration.xAxisCustomlabelStyles)