axidio-styleguide-library1-v2 0.5.28 → 0.5.30

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.
@@ -8089,7 +8089,7 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
8089
8089
  .filter((d) => !/\d{2,4}[-\/]/.test(d))
8090
8090
  .append('text')
8091
8091
  .attr('class', 'lib-xaxis-labels-texts-drilldown')
8092
- .attr('y', !isria ? 30 : 2)
8092
+ .attr('y', 30)
8093
8093
  .attr('fill', 'var(--chart-text-color)')
8094
8094
  .attr('x', (d) => (self.chartData.data.length > 8 && !self.isZoomedOut) ? 1 : 0)
8095
8095
  .text((d) => {
@@ -8115,7 +8115,8 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
8115
8115
  return chartHasExtraBottom ? shortTickLengthBg : shortTickLengthBg + 10;
8116
8116
  }
8117
8117
  // Default/fallback logic
8118
- let baseY = self.isHeaderVisible ? shortTickLengthBg + 25 : shortTickLengthBg;
8118
+ const isria = this.customChartConfiguration.isRia;
8119
+ let baseY = self.isHeaderVisible && !isria ? shortTickLengthBg + 25 : shortTickLengthBg;
8119
8120
  if (subgroups.length > 1 && !metaData.xLabel &&
8120
8121
  (/\d{2,4}[-\/]\d{2}[-\/]\d{2,4}/.test(d) || /\d{2,4}[-\/]\d{2,4}/.test(d))) {
8121
8122
  baseY = self.isHeaderVisible ? shortTickLengthBg + 15 : shortTickLengthBg + 25;
@@ -8257,7 +8258,7 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
8257
8258
  .style('opacity', '0.5')
8258
8259
  .call((g) => g.select('.domain').remove().style('stroke', 'var(--chart-domain-color, #000000)'));
8259
8260
  }
8260
- if (!this.chartConfiguration.yAxisGrid && !isria) {
8261
+ if (!this.chartConfiguration.yAxisGrid) {
8261
8262
  svg.append('g')
8262
8263
  .call(d3.axisLeft(y).ticks(self.chartConfiguration.numberOfYTicks))
8263
8264
  .style('color', 'var(--chart-axis-color, #B9B9B9)')
@@ -8671,9 +8672,13 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
8671
8672
  // X-axis label
8672
8673
  if (metaData.xLabel) {
8673
8674
  const isAcronym = this.isLabelAcronym(metaData.xLabel);
8674
- const xPosition = isria
8675
- ? (height + margin.top + margin.bottom)
8676
- : (height + margin.top + margin.bottom + 40);
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);
8677
8682
  svg.append('text')
8678
8683
  .attr('class', this.getXLabelClass(self))
8679
8684
  .attr('style', self.chartConfiguration.xAxisCustomlabelStyles)