axidio-styleguide-library1-v2 0.0.914 → 0.0.916

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,11 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
8694
8694
  }));
8695
8695
  }
8696
8696
  else {
8697
- // For normal drill down chart, increase padding to reduce bar width
8698
- let barPadding = 0.5; // Increased padding for thinner bars
8699
- if (this.isZoomedOut || (this.chartData.data.length > 8 && !this.isZoomedOut) || this.chartConfiguration.isMultiChartGridLine !== undefined) {
8700
- // Use default padding for zoomed in/out and other chart types
8701
- barPadding = 0.3;
8702
- }
8703
8697
  x = d3
8704
8698
  .scaleBand()
8705
8699
  .domain(groups)
8706
8700
  .range([leftAndRightSpaces, width - rightSvgWidth - leftAndRightSpaces])
8707
- .padding([barPadding]);
8701
+ .padding([0.3]);
8708
8702
  }
8709
8703
  // x.bandwidth(96);
8710
8704
  var xScaleFromOrigin = d3
@@ -8976,13 +8970,13 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
8976
8970
  }
8977
8971
  var xSubgroup = d3.scaleBand().domain(subgroups);
8978
8972
  if (this.chartConfiguration.isMultiChartGridLine == undefined) {
8979
- xSubgroup.range([0, x.bandwidth()]);
8973
+ // For normal drill down chart, reduce bar width to 60% of slot and center
8974
+ const barWidthRatio = 0.6;
8975
+ const offset = (x.bandwidth() * (1 - barWidthRatio)) / 2;
8976
+ xSubgroup.range([offset, x.bandwidth() - offset]);
8980
8977
  }
8981
8978
  else {
8982
- /**
8983
- * used to make grouped bars with lesser width as we are not using padding for width
8984
- * used by weekly charts
8985
- */
8979
+ // For grouped/weekly charts, keep full width
8986
8980
  xSubgroup.range([0, x.bandwidth()]);
8987
8981
  }
8988
8982
  // if (this.chartConfiguration.isDrilldownChart) {