axidio-styleguide-library1-v2 0.0.813 → 0.0.815

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.
@@ -8694,17 +8694,7 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
8694
8694
  svg
8695
8695
  .selectAll('g.x1.axis1 g.tick text')
8696
8696
  .attr('class', 'lib-xaxis-labels-texts-drilldown')
8697
- .style('fill', 'var(--chart-text-color)')
8698
- .attr('transform', function (d) {
8699
- if (self.isZoomedOut) {
8700
- return 'translate(0, 0)'; // Default position when zoomed out
8701
- }
8702
- else {
8703
- // When zoomed in, shift labels left
8704
- const leftOffset = -x.bandwidth() * 0.1; // Shift left by 10% of bandwidth
8705
- return `translate(${leftOffset}, 0)`;
8706
- }
8707
- });
8697
+ .style('fill', 'var(--chart-text-color)');
8708
8698
  // .attr('y', function () {
8709
8699
  // if (alternate_text) {
8710
8700
  // alternate_text = false;
@@ -8769,8 +8759,6 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
8769
8759
  .selectAll('g.x1.axis1 g.tick text')
8770
8760
  .attr('class', 'lib-xaxis-labels-texts-drilldown')
8771
8761
  .attr('y', short_tick_length_bg)
8772
- .attr('x', 0) // Keep at center
8773
- .attr('text-anchor', 'middle')
8774
8762
  .text(function (d) {
8775
8763
  var isValueToBeIgnored = false;
8776
8764
  data.map((indiv) => {
@@ -8799,8 +8787,6 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
8799
8787
  .append('text')
8800
8788
  .attr('class', 'lib-xaxis-labels-texts-drilldown')
8801
8789
  .attr('y', long_tick_length_bg)
8802
- .attr('x', 0) // Keep at center
8803
- .attr('text-anchor', 'middle')
8804
8790
  .attr('fill', 'var(--chart-text-color)')
8805
8791
  .text(function (d) {
8806
8792
  if (d.trim().indexOf(' ') > -1) {
@@ -9057,11 +9043,11 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
9057
9043
  });
9058
9044
  return self.isZoomedOut
9059
9045
  ? tempScale.bandwidth()
9060
- : tempScale.bandwidth() * 0.5;
9046
+ : tempScale.bandwidth();
9061
9047
  }
9062
9048
  return self.isZoomedOut
9063
9049
  ? xSubgroup.bandwidth()
9064
- : xSubgroup.bandwidth();
9050
+ : xSubgroup.bandwidth() * 0.5;
9065
9051
  })
9066
9052
  .attr('height', function (d) {
9067
9053
  if (d.value == -1) {
@@ -9604,30 +9590,6 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
9604
9590
  .style('font-size', 'smaller')
9605
9591
  .text(metaData.lineyLabel);
9606
9592
  }
9607
- if (metaData.xLabel) {
9608
- function isAcronym(label) {
9609
- return (label.length <= 4 && /^[A-Z]+$/.test(label)) || (label === label.toUpperCase() && /[A-Z]/.test(label));
9610
- }
9611
- const xLabelText = metaData.xLabel;
9612
- const isAcr = isAcronym(xLabelText.replace(/[^A-Za-z]/g, ''));
9613
- svg
9614
- .append('text')
9615
- .attr('class', function () {
9616
- let baseClass = 'lib-axis-group-label';
9617
- if (self.chartConfiguration.isDrilldownChart)
9618
- return baseClass + ' lib-xlabel-drilldowncharts';
9619
- if (self.chartConfiguration.isMultiChartGridLine != undefined)
9620
- return baseClass + ' lib-xlabel-weeklyCharts';
9621
- return baseClass + ' lib-axis-waterfall-label font-size-1';
9622
- })
9623
- .attr('style', self.chartConfiguration.xAxisCustomlabelStyles)
9624
- .attr('transform', 'translate(' + width / 2 + ' ,' + (height + margin.top + 40) + ')')
9625
- .style('text-anchor', 'middle')
9626
- .style('fill', 'var(--chart-text-color)')
9627
- .style('color', 'var(--chart-text-color)')
9628
- .text(isAcr ? xLabelText.toUpperCase() : xLabelText.toLowerCase())
9629
- .style('text-transform', isAcr ? 'none' : 'capitalize');
9630
- }
9631
9593
  if (lineData) {
9632
9594
  svg
9633
9595
  .append('path')