axidio-styleguide-library1-v2 0.1.94 → 0.1.95

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.
@@ -8832,7 +8832,7 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
8832
8832
  }
8833
8833
  var xSubgroup = d3.scaleBand().domain(subgroups);
8834
8834
  if (subgroups.length > 1 && !this.isZoomedOut) {
8835
- // For grouped bar charts in zoom-in view, reduce padding between bars
8835
+ // For grouped bar charts in zoom-in view, use full x.bandwidth() for subgroups
8836
8836
  xSubgroup.range([0, x.bandwidth()]);
8837
8837
  }
8838
8838
  else if (subgroups.length === 1 && !this.isZoomedOut) {
@@ -8900,7 +8900,7 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
8900
8900
  // Increase bar width a bit in zoom-in view
8901
8901
  let reducedBarWidth = 60;
8902
8902
  if (!self.isZoomedOut) {
8903
- reducedBarWidth = 60;
8903
+ reducedBarWidth = 30;
8904
8904
  }
8905
8905
  if (self.chartData.data.length == 1) {
8906
8906
  if (Object.keys(self.chartData.data[0]).length == 2) {
@@ -8939,9 +8939,9 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
8939
8939
  return y(0);
8940
8940
  })
8941
8941
  .attr('width', function (d) {
8942
- // For grouped bar charts in zoom-in view, slightly increase bar width for both bars (shipped and planned)
8942
+ // For grouped bar charts in zoom-in view, use full subgroup bandwidth for thick bars
8943
8943
  if (subgroups.length > 1 && !self.isZoomedOut) {
8944
- return xSubgroup.bandwidth() * 0.25;
8944
+ return xSubgroup.bandwidth();
8945
8945
  }
8946
8946
  // For single-bar (non-grouped) charts in zoom-in view, set bar width to 80
8947
8947
  if (subgroups.length === 1 && !self.isZoomedOut) {